| Author |
Comment/Response |
yehuda
|
07/08/12 2:59pm
Manipulate is just a fancy DynamicModule which behaves the same as module for renaming variables etc.
Therefore define
s[a_]:=...
and use s[a] inside the body of Plot
Also use Evaluate
yehuda
s[a_] := {{y -> Function[{x}, C[1] + Sin[a x]]}}
Manipulate[
Plot[Evaluate[{Sin[a x],
y[x] /. (s[a] /. C[1] -> Range[-5, -2])[[1]]}], {x, -10, 10},
PlotRange -> 10], {{a, 1}, 0, 2}]
URL: , |
|