A simulation of the heat equation in 1 space dimension. The user can enter his/her own initial condition, or choose one from a drop-down menu.
The Fourier coefficients of the initial condition are approximated through a discrete Fourier transform (DFT) and the solution is computed by separation of variables.
Technical comment: The DFT and its inverse are computed in JavaScript (directly from the definition: no FFT!).
The same result could be achieved (in an even simpler way) by using list commands...but the resulting applet is slow as hell on tablets and phones!