I would like to create a Manipulate[] with several interdependent variables. E.g. consider this simple example
Manipulate[x = 3*y; {x, y}, {y, 0, 2}, {x, 0, 6}]
The problem is that Manipulate[] only lets me manipulate the variable on the RHS. However, I would like to be able to manipulate both variables. Thanks in advance!
==not=. – zhk Apr 29 '17 at 09:14DynamicModule[{x, y}, Column[{ {Dynamic[x], Dynamic[y]}, Slider[Dynamic[y, y = #; x = 3 y; &], {0, 2}], Slider[Dynamic[x, x = #; y = x/3; &], {0, 6}] }] ]The sliders aren't as pretty as in Manipulate, but I don't know how to use the second argument of Dynamic within Manipulate. – jjc385 Apr 29 '17 at 09:35Manipulate[{x, y}, {y, 0, 2, TrackingFunction :> ((y = #; x = 3 y) &)}, {x, 0, 6, TrackingFunction :> ((x = #; y = x/3) &)}]– Kuba Apr 29 '17 at 09:38