Struggling with symbolic toolbox again
All i want to do is the following. I want to give it an equation called ess that has many symbolic variables in it.
Im going to sub in a specific value for one of the variables.
Then i want it to rearrange itself in terms of ess and give me the result as a ratio of two variable that are in the original equation.
Cant get it to work. Here is what I've been trying. Obviously it doesn't work but here is what I'm trying
syms P S Z ess ratioess = (S-P)/(S^2-S*Z)S1 = -2+2*sqrt(3)*iess = subs(ess,S,S1)assume(ess == 1/50)solve(ess== Z/P, Z/P)% Now ess should be only in terms of Z and P
%I want matlab to tell me what Z/P is interms of ess, So i want it to
%rearrange itself and say Z/P = (ess+ some numbers/some more numbers - ess)
%or whatever form it turns out to be but now ess is equal to the number
%1/50
I have also tried this version by solving by hand for Z and P and then asking it what Z/P is but it gives me an answer in terms of P still where P should no longer exists
syms Z P S ess = 1/50Z = (S^2-((S-P)/(ess)))/SP = S-ess*(S^2-S*Z)ratio = Z/PS = -2 + 2*sqrt(3)*ianswer = subs(ratio,S)
Best Answer