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

MathGroup Archive 2008

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

Search the Archive

Re: Redundant manipulate

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88867] Re: Redundant manipulate
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Tue, 20 May 2008 02:23:04 -0400 (EDT)
  • Organization: University of Bergen
  • References: <g0rkhs$dv7$1@smc.vnet.net>

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


  • Prev by Date: Re: Framed[3, FrameStyle -> None] fails
  • Next by Date: Re: FindRoot with a parameter
  • Previous by thread: Redundant manipulate
  • Next by thread: Re: Re: Redundant manipulate