Below is some code to produce a Fourier series. I want to be able to adjust L to change not only the function, but also the plot limits.
I am getting the error :
"Limiting value -0.536 in {x, -0.536, 0.536} is not a machine-sized real number."
Slider[Dynamic[L]]
Plot[Dynamic[L]/2 +
Sum[(2*Dynamic[L]/(n*Pi)^2)*((-1)^n - 1)*(Cos[
n*Pi*x/Dynamic[L]]), {n, 3}], {x, Minus[Dynamic[L]],
Dynamic[L]}]
I am inexperienced with Mathematica, any help is appreciated



Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign!
– Oct 07 '15 at 17:10