MathGroup Archive 2011

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

Search the Archive

Re: Manipulate inside module


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





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