Visualize the Fourier series for any real periodic function!
To obtain this program, first download or clone this repository, then ensure that you have the latest version of Python with Tkinter, Matplotlib,
Numpy, and Sympy installed. You may also optionally install PySide2 if you want to use PySide2 for the GUI instead of Tkinter.
You can then launch this program by either running app.py
if you're using Tkinter, or qt_app.py
if you're using PySide2. You should see the Fourier series of the rectangle function expressed in terms of rotating complex exponentials.
To visualize the Fourier series of a different function, choose one of the preset functions in the Preset Waveform f(t)
drop down menu, or enter a new function in the Enter waveform f(t)
entry box.
Change the number of circles displayed by changing the position of the Maximum Frequency
slider. Use the Animation Speed
slider to change the animation speed. To close the app, click QUIT
.
Wikipedia - Fourier series
Chapter 7 of Mark Newman's Computational Physics