[math-fun] Fourier pendulum wrap