MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

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




  • Prev by Date: Re: clearing a variable with a dummy subscript
  • Next by Date: Re: Maximisation question
  • Previous by thread: Re: problem with Manipulate
  • Next by thread: Re: problem with Manipulate