MathGroup Archive 2008

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

Search the Archive

Re: Re: Redundant manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88939] Re: Re: Redundant manipulate
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Wed, 21 May 2008 14:54:31 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <g0rkhs$dv7$1@smc.vnet.net> <200805200623.CAA23027@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

What does that Labeled accomplish that the following does not?

   Column[{Slider[Dynamic[10/a, (a = 10/#) &], {1, 10}],
           Slider[Dynamic[a], {1, 10}], Dynamic[a]},
           Alignment -> Center]

Szabolcs Horv=E1t wrote:
> wiso wrote:
>> I have a manipulate like this:
>>
>> Manipulate[
>>  Row[{"a = ", a, " b = 2 a = ", b = 2 a}]
>>  , {a, -10, 10, 1}, {b, -20, 20, 1}]
>>
>> If I change a, then b changes, but I also want that when I change b,
>> then a changes. Thanks.
>>
>
> I'm not sure how to do this with Manipulate, but it is achievable with =

> Dynamic:
>
> Labeled[Column[{Slider[Dynamic[10/a, (a = 10/#) &], {1, 10}],
>     Slider[Dynamic[a], {1, 10}]}], Dynamic[a]]
>

--
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305



  • Prev by Date: Re: Problems with ListPlot
  • Next by Date: URL button on Documentation Center pages
  • Previous by thread: Re: Redundant manipulate
  • Next by thread: Re: Redundant manipulate