Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Manipulate functions' topicStudent Support Forum > General > "Manipulate functions"

Next Comment >Help | Reply To Topic
Author Comment/Response
M8User
03/12/12 1:23pm

Hello,

I have a function defined as follows:
g[x_] := 1 + a Cos[\[Omega] x];
I would like to use Manipulate[] as follows:
Manipulate[
Plot[g[x], {x, 0, 10}], {a, 0, 1}, {\[Omega], 0.0,
10}]

But it doesn't work. Instead, I have to do something like this :
Manipulate[
Plot[1 + a Cos[\[Omega] x], {x, 0, 10}], {a, 0, 1}, {\[Omega], 0.0,
10}]

This is ok for such a simple function, but if the function has much more terms, then it is not very convenient. Is there any way to do something like Manipulate[Plot[g[x], {x, 0, 10}],{...}]?

Thank you in advance for your answers

URL: ,

Subject (listing for 'Manipulate functions')
Author Date Posted
Manipulate functions M8User 03/12/12 1:23pm
Re: Manipulate functions Forum Modera... 03/13/12 11:53am
Re: Manipulate functions yehuda 03/13/12 3:49pm
Next Comment >Help | Reply To Topic