MathGroup Archive 2008

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

Search the Archive

Re: Manipulate question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg93165] Re: Manipulate question
  • From: Mark Fisher <particlefilter at gmail.com>
  • Date: Thu, 30 Oct 2008 01:59:20 -0500 (EST)
  • References: <ge6ne6$lh1$1@smc.vnet.net> <ge9f3o$988$1@smc.vnet.net>

On Oct 29, 6:49 am, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de>
wrote:
> Hi,
>
> Manipulate[Dynamic[n = Max[n, 1]], {{n, 5}, 0, 10}]
>
> ??
>
> Regards
>    Jens
>
> Mark Fisher wrote:
> > 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
>
>

It works. Thank you. (Although I don't understand what's going on.)

--Mark


  • Prev by Date: Docked Cells and Footer
  • Next by Date: Re: odd delay problem
  • Previous by thread: Re: Manipulate question
  • Next by thread: Is there a way to make Mathematica commands and functions