plot 2rect(t/2)cos(6πt)