Re: problem with Manipulate
- To: mathgroup at smc.vnet.net
- Subject: [mg126559] Re: problem with Manipulate
- From: "djmpark" <djmpark at comcast.net>
- Date: Sat, 19 May 2012 05:44:11 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <32630374.4114.1337334121117.JavaMail.root@m06>
How about:
ClearAll[tmp];
tmp[a_] := Plot[Sin[x (1 + a x)], {x, 0, 6}, Frame -> True]
Manipulate[tmp[a], {a, 0, 2}]
?
David Park
djmpark at comcast.net
http://home.comcast.net/~djmpark/index.html
From: Physics is Everything....Almost [mailto:fizzycist at knology.net]
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}]
I checked Attributes of Manipulate and saw HoldAll......but Hold what??
thanks.....Jerry Blimbaum