I understand Mathematica can't assign the results of a Solve to the unknowns because there may be more than 1 solution. How can I assign the 4 values of following result to variables?

|
I understand Mathematica can't assign the results of a Solve to the unknowns because there may be more than 1 solution. How can I assign the 4 values of following result to variables?
|
|||
|
You can do this :
Now you can access solutions, this way If you prefer to collect solutions in
now
You do not have to use or even to define
We've used |
|||||||||||
|
|
Usually you don't want to actually assign values to
or for the second solution:
If you really want to assign values to
but you must clear
If you want to assign values to
This uses what I am calling the injector pattern to get the values into Related questions: |
|||||
|
|
If you really wish to assign solutions to variables, you can do something like this:
Then you can use the solutions for demonstration purposes:
|
|||
|
|
Replace(orPart) to assign the values to variables. – sebhofer Jun 11 '12 at 13:36