Message Boards Message Boards

0
|
3534 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Equation from Solve[] that can be Plotted (Solved)

Posted 10 years ago

Hello,

Consider this example,

Solve[a + b^2 == 10, {a, b}, Reals]

One answer for this example is that "a" = 1 and "b" = 3, but "a" could also be 4, which would make "b" = 2.44949, and so forth. There are an infinite number of solutions along a continuous line- how do I generate the equation for that line as a plot? Thanks!

Greg

POSTED BY: Greg
2 Replies
Posted 10 years ago

Thank you.

POSTED BY: Greg
Clear[a, b]
sol = Solve[a + b^2 == 10, {a, b}, Reals];
Set @@@ First @ sol;
Plot[a, {b, -4, 4}, AxesLabel -> {"b", "a"}]

enter image description here

POSTED BY: Nasser M. Abbasi
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