Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'manipulate fourier series plot' topicStudent Support Forum > General > Archives > "manipulate fourier series plot"

Next Comment >Help | Reply To Topic
Author Comment/Response
ed
04/22/12 01:28am

I just started using Mathematica. I searched but can't solve this issue.
I'm trying to manipulate the plot of a fourier sine series.

Here's as far as I can get it to work:

fourier[b_] := FourierSinSeries[x^2/4, x, b]

Manipulate[fourier[s], {s, 1, 10, 1}]

it works perfectly, giving me the series expansion with as many terms as I want through the slider.
But when I try to plot it it doesn't work!

fourier[b_] := FourierSinSeries[x^2/4, x, b]

Manipulate[Plot[fourier[s], {x, -10, 10}], {s, 1, 10, 1}]

I just get an empty plot wih the slider.
Even if I try the simpler command:

Plot[fourier[2], {x, -10, 10}]
I get an empty plot.

I don't understand the problem because if I do this, it works:

d = fourier[2]
Plot[d, {x, -10, 10}]

URL: ,

Subject (listing for 'manipulate fourier series plot')
Author Date Posted
manipulate fourier series plot ed 04/22/12 01:28am
Re: manipulate fourier series plot ed 04/22/12 6:08pm
Next Comment >Help | Reply To Topic