Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Manipulate question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93132] Manipulate question
  • From: Mark Fisher <particlefilter at gmail.com>
  • Date: Tue, 28 Oct 2008 04:53:21 -0500 (EST)

Hi all,

In the following Slider code, n is contrained to be greater than or
equal to 1:

Module[{n=5},
Slider[Dynamic[n, (n = Max[#, 1]) &], {0, 10}]
]

I would have thought that in the following Manipulate code, n would
again be constrained to be greater than or equal to 1, but it's not.
Where is my thinking going wrong?

Manipulate[
 Dynamic[n, (n = Max[#, 1]) &],
 {{n, 5}, 0, 10}
 ]

--Mark


  • Prev by Date: From Plain Text to other formats
  • Next by Date: Re: mathlink and complex number
  • Previous by thread: Re: From Plain Text to other formats
  • Next by thread: Re: Manipulate question