Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'interdependent controls' topicStudent Support Forum > General > "interdependent controls"

Next Comment >Help | Reply To Topic
Author Comment/Response
Sebastian
04/25/13 02:36am

We have the variables a,b,c.

Let c=a*b.

What I want are 3 slider, one for each variable (a,b,c). If I change a by moving the slider, b and/or c should also change automatically since c=a*b.

In my example c changes if a or b are manipulated, but it does not the work other way (manipulate c and a/b change).

Any suggestions?

my example:

Manipulate[
Grid[{{
Plot[x^a + b, {x, 0, 10}, PlotRange -> {{0, 10}, {0, 10}}],
c = a*b
}}],
{{a, 0.9, "a"}, 0, 5, Slider, Appearance -> "Labeled"},
{{b, 1.5, "b"}, 0, 10, Slider, Appearance -> "Labeled"},
{{c, 0, "c"}, 0, 50, Slider, Appearance -> "Labeled"}
]




URL: ,

Subject (listing for 'interdependent controls')
Author Date Posted
interdependent controls Sebastian 04/25/13 02:36am
Re: interdependent controls jf 04/25/13 2:05pm
Next Comment >Help | Reply To Topic