| 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: , |
|