Fourier series partial sums converging to target functions, showing trigonometric decomposition
This program demonstrates Fourier series by visualizing partial sums of trigonometric series as they approximate a target function. Each term in the sum contributes a sine or cosine wave at an integer frequency, and the user can observe how adding more terms improves the approximation. The visualization uses Three.js to render the curves in 3D, providing geometric intuition for how periodic functions decompose into frequency components.
Controls: Click and drag to orbit, scroll to zoom.