1D Fourier series (Jupyter notebook)