2

> sq:=proc(x) if (x>=(-2*evalf(Pi)) and x<(-1*evalf(Pi))) then 1 elif (x>=-1*evalf(Pi) and x<0) then -1 elif (x>=0 and x<evalf(Pi)) then 1 elif (x>=evalf(Pi) and x<2*evalf(Pi)) then -1 end if end proc;

sq := proc (x) if -2*evalf(Pi) <= x and x < -evalf(...
sq := proc (x) if -2*evalf(Pi) <= x and x < -evalf(...
sq := proc (x) if -2*evalf(Pi) <= x and x < -evalf(...
sq := proc (x) if -2*evalf(Pi) <= x and x < -evalf(...
sq := proc (x) if -2*evalf(Pi) <= x and x < -evalf(...
sq := proc (x) if -2*evalf(Pi) <= x and x < -evalf(...
sq := proc (x) if -2*evalf(Pi) <= x and x < -evalf(...

> fsq:=(x,n)->4/(Pi)*sum('sin((2*k-1)*x)/(2*k-1)',k=1..n);

fsq := proc (x, n) options operator, arrow; 4*sum('...

> fs2:=x->fsq(x,2);

fs2 := proc (x) options operator, arrow; fsq(x,2) e...

> fs5:=x->fsq(x,5);

fs5 := proc (x) options operator, arrow; fsq(x,5) e...

> fs10:=x->fsq(x,10);

fs10 := proc (x) options operator, arrow; fsq(x,10)...

> plot([sq,fs2,fs5,fs10],-6..6);

[Maple Plot]

> plot([sq,fs2,fs5,fs10],-0.3..0.3);

[Maple Plot]

> fs50:=x->fsq(x,50);

fs50 := proc (x) options operator, arrow; fsq(x,50)...

> plot([sq,fs50],-0.1..0.1);

[Maple Plot]

> tr:=x-> if (x>=(-4) and x<(-2)) then (x+4) elif (x>=-2 and x<0) then -x elif (x>=0 and x<2) then x elif (x>=2 and x<4) then -(x-4) fi;

tr := proc (x) options operator, arrow; if -4 <= x ...
tr := proc (x) options operator, arrow; if -4 <= x ...
tr := proc (x) options operator, arrow; if -4 <= x ...
tr := proc (x) options operator, arrow; if -4 <= x ...
tr := proc (x) options operator, arrow; if -4 <= x ...
tr := proc (x) options operator, arrow; if -4 <= x ...
tr := proc (x) options operator, arrow; if -4 <= x ...
tr := proc (x) options operator, arrow; if -4 <= x ...

> ftr:=(x,n)->1-8/(Pi^2)*sum('cos((2*k-1)*Pi*x/2)/(2*k-1)^2',k=1..n);

ftr := proc (x, n) options operator, arrow; 1-8*sum...

> ft2:=x->ftr(x,2);

ft2 := proc (x) options operator, arrow; ftr(x,2) e...

> ft5:=x->ftr(x,5);

ft5 := proc (x) options operator, arrow; ftr(x,5) e...

> ft10:=x->ftr(x,10);

ft10 := proc (x) options operator, arrow; ftr(x,10)...

> plot([tr,ft2,ft5,ft10],-.1..0.1);

[Maple Plot]

>

>