Message Boards Message Boards

GROUPS:

Solving for two variables in Manipulate[ ]

Posted 3 months ago
608 Views
|
3 Replies
|
1 Total Likes
|

Hi, I would need to solve the equation for "s", keeping "s" also in the slider. This is "s" must not affect "t" Kindly please help. Thanks

Manipulate[
 Solve[
  0.20 == 0.266 - 0.032 s + 0.00077 t],
 {t, 10, 50, Appearance -> "Labeled"},
 {s, 2, 2.8, Appearance -> "Labeled"}]
POSTED BY: Ma oj
Answer
3 Replies
Posted 3 months ago

Your question is a bit hard to understand, but are you looking for something like this below?

Manipulate[
    s = First@SolveValues[0.20 == 0.266 - 0.032 sx + 0.00077 t, sx],
    {t, 10, 50, Appearance -> "Labeled"},
    {s, 2.3, 3.3, Appearance -> "Labeled"}
 ]
Posted 3 months ago

Well, here is another:

Manipulate[
    Grid[{
        {"s(t):", First[sx /. Solve[0.20 == 0.266 - 0.032 sx + 0.00077 t, sx]]},
        {"t(s):", First[tx /. Solve[0.20 == 0.266 - 0.032 s + 0.00077 tx, tx]]}
    }],
    {t, 10, 50, Appearance -> "Labeled"},
    {s, 2.3, 3.3, Appearance -> "Labeled"}
 ]

enter image description here

Is this more like it?

Posted 3 months ago

Thanks very much Mr. Hans, works wonderfully.

POSTED BY: Ma oj
Answer
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract