plot sin(x+pi+(pi/2*((-1)^(floor(x/(pi/2))))))+(-1)^(floor(x/(pi))) from -2pi to 2pi