plot ((integerpart(x))*sign(x)*(-cos((pi)*(x-integerpart(x)))) from -5 to 5