I have a function in MuPAD in terms of various variables as z = f(x,y,...)
.
Now I would like to rearrange the equation to express x
in terms of z
. I have not found the suitable command to do so.
Asked
Active
Viewed 736 times
2

shunyo
- 1,277
- 15
- 32
1 Answers
0
Use solve
. Example:
syms x y z
X = solve('z = x^3 + y^3 - 1', x);

kol
- 27,881
- 12
- 83
- 120
-
I tried solve. It gives me four different answers subject to different conditions. I was assuming there would be a simpler solution to this closed form equation. – shunyo Sep 10 '14 at 20:38
-
You can set constraints for the variables, for example: `syms y positive`, this may shorten the result. You can add `'IgnoreAnalyticConstraints', true` to the parameter list of `solve`, and you will get simplified results. – kol Sep 10 '14 at 20:47