MathGroup Archive 2011

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

Search the Archive

Re: Manipulate inside module

  • To: mathgroup at
  • Subject: [mg121329] Re: Manipulate inside module
  • From: "Scot T. Martin" <smartin at>
  • Date: Sun, 11 Sep 2011 07:27:40 -0400 (EDT)
  • Delivered-to:
  • References: <>


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

The issue is that Module[{b=a},...] only assigns b initially. You need to
 update its value later.

From: Charles Wells [Charles at]
Sent: Saturday, September 10, 2011 07:30
To: mathgroup at
Subject: [mg121329] Manipulate inside module

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

  • Prev by Date: Message window
  • Next by Date: Re: Manipulate inside module
  • Previous by thread: Manipulate inside module
  • Next by thread: Re: Manipulate inside module