It is caused by scoping. "Manipulate generates a DynamicModule
object, with the variables u, v, etc. specified as local. "
tmp := Plot[Sin[x (1 + a x)], {x, 0, 6}];
Manipulate[a = b; tmp, {b, 0, 2}]
Bob Hanlon
On Fri, May 18, 2012 at 5:27 AM, Physics is Everything....Almost
<
fizz...@knology.net> wrote:
>
> Why does Manipulate[ Plot[Sin[x (1+ a x)], {x,0,6} ], (a,0,2} ] work....
> BUT..... the following doesn't....
> tmp = Plot[Sin[x (1+ a x)], {x,0,6} ]
> Manipulate[ tmp , (a,0,2}]