Re: Manipulate inside module
- To: mathgroup at smc.vnet.net
- Subject: [mg121337] Re: Manipulate inside module
- From: Bob Hanlon <hanlonr at cox.net>
- Date: Sun, 11 Sep 2011 07:29:06 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Reply-to: hanlonr at cox.net
Manipulate[
Module[{b = a}, b^2], {{a, 1}, 0, 5, Appearance -> "Labeled"}]
Bob Hanlon
---- Charles Wells <Charles at 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}])]