plot 4(1-cos(t/2) sgn(sin(t/2))) + 8 floor(t/(2 pi)) for t from 0 to 8 pi