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


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

Re: Manipulate inside module

From Bob Hanlon <hanlonr@cox.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Manipulate inside module
Date 2011-09-11 11:32 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j4i68a$bvp$1@smc.vnet.net> (permalink)

Show all headers | View raw


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}])]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web