MathGroup Archive 2011

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

Search the Archive

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: Re: DiscretePlot filling is darker above axis than below
  • Next by Date: passing Indeterminate and Infinity to C via MathLink
  • Previous by thread: why MakeExpression acts differently
  • Next by thread: Re: Manipulate inside module