plotting the step function including trigonometry expressions



On Thu, 2012-11-08 at 17:25 +0330, Fereshteh Zeynivand wrote:
   . . .
> In doing so, I used the following syntax to get the graph of the x(t)
> 
> 
> plot2d(1/4*t*sin(2*t)-unit_step(t-2*pi)*1/4*(t-2*pi)*sin(2*t-4*pi),[t,0,3*pi]);

The lines

    e: 1/4*t*sin(2*t)- unit_step(t-2*%pi)*1/4*(t-2*%pi)*sin(2*t-4*%pi);
    plot2d(e,[t,0,3*%pi]);

seem to work for me.  You need to use "%pi", not "pi", for the constant.

-- 
Bill Wood