XDLXDL
The square wave's epicycles rebuilt with squares: square k has half-side 1/(2k + 1), a point circuits it at constant speed 2k + 1 times per period, and the next square is centred on that point. One square gives a trapezoid wave. The last point's height is the sum of all N. With · XDL