/fourier-series-animator

Creates a .gif of a Fourier Series with more and more terms converging to the function wanted.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Fourier Series Animator

This is a simple program that animates the Fourier series of some function. In this case, it is the Square Wave.

Example output

Below you can see the animation generated if you run the code as is.

Running it

To run it, it is quite simple. You can just download the contents of this repo and run on your favorite IDE/Editor or in terminal. The code will automatically create the folder which it will save all the images generated, and also delete it afterwards. If you want to keep the images, comment line 70 of the code.

To run it in terminal, just do

$ python fourier_gif.py

Or

$ python3 fourier_gif.py