Inspired by 3B1B's video: But what is a Fourier series? From heat flow to drawing with circles
Also, checkout this blog!
The algorithms is the simplest DFT and Trigonometric interpolation, implemented by myself. I wanted to implement FFT, but it turns out to be unnecessary for such few samples.