Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10148 > unrolled thread

Re: problem with Manipulate

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-05-19 09:43 +0000
Last post2012-05-19 09:43 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: problem with Manipulate Bob Hanlon <hanlonr357@gmail.com> - 2012-05-19 09:43 +0000

#10148 — Re: problem with Manipulate

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-05-19 09:43 +0000
SubjectRe: problem with Manipulate
Message-ID<jp7q03$qct$1@smc.vnet.net>
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
<fizzycist@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}]
> I checked Attributes of Manipulate and saw   HoldAll......but Hold what??
> thanks.....Jerry Blimbaum
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web