how do I plot this on wolfram
y(x)=4 for 0<x<pi/2 y(x)=-4 for -pi/2<x<0 y(x)=0 for -pi<x<-pi/2 and pi/2<x<pi
You rock, thanks a lot!
Looks like a good candidate for Piecewise:
Plot[Piecewise[{{-4, -Pi/2 < x <= 0}, {4, 0 < x < Pi/2}}, 0], {x, -Pi, Pi}]
Plot[Piecewise[{{4, 0 < x < \[Pi]/2}, {-4, -\[Pi]/2 < x < 0}, {0, -\[Pi] < x < -\[Pi]/ 2}, {0, \[Pi]/2 x < \[Pi]}}], {x, -5, 5}]
Wow, quite complex! thank you so much!... Can I ask, if it says that is periodic over an interval of 2pi, does it mean that the graph will entirely be on positive-y side throughout the positive-x side and entirely be on the negative-y side throughout the negative-x side?