A program for plotting the fourier series of given function in terms of a0, an, bn.
f(x) = a0 + Σ an cos(nx π/L) + Σ bn sin(nx π/L)
an
0
(5/pi) * (-1/n)
0
5/(pi*n)
bn
0
15/(pi * n)
-10/(pi * n)
15/(pi * n)
Simple program plot the fourier series of given function (a0, an, bn)
PythonMIT