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


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

Re: Manipulate inside module

Started byBob Hanlon <hanlonr@cox.net>
First post2011-09-11 11:32 +0000
Last post2011-09-11 11:32 +0000
Articles 1 — 1 participant

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


Contents

  Re: Manipulate inside module Bob Hanlon <hanlonr@cox.net> - 2011-09-11 11:32 +0000

#4869 — Re: Manipulate inside module

FromBob Hanlon <hanlonr@cox.net>
Date2011-09-11 11:32 +0000
SubjectRe: Manipulate inside module
Message-ID<j4i68a$bvp$1@smc.vnet.net>
Manipulate[
 Module[{b = a}, b^2], {{a, 1}, 0, 5, Appearance -> "Labeled"}]


Bob Hanlon

---- Charles Wells <Charles@abstractmath.org> wrote: 

=============
I expected the following expression to show the square of the current value of the slider, but it shows only a^2.  There is clearly something I don't understand about Module.  Any insights?

Module[{b = a}, (Print[b]; Manipulate[b^2, {{a, 1}, 0, 5}])]

[toc] | [standalone]


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


csiph-web