system of eqns 2 solve. Help please
Afficher commentaires plus anciens
I have to solve the the following eqns for r1 & r2.
x =
((-ptr*(1-r2*ptr)+(1-ptr)*ptr*(1-r2*ptr))*(1-ptr)-ptr^3*(1-r2*ptr)^2-3*ptr*(1-r2*ptr)*(-ptr*(1-r2*ptr)+(1-ptr)*ptr*(1-r2*ptr)))*r1^2+((2-r2*ptr-ptr-(1-ptr)*(1-r2*ptr))*(1-ptr)+2*ptr^2*(1-r2*ptr)^2+(4-ptr-3*r2*ptr)*(-ptr*(1-r2*ptr)+(1-ptr)*ptr*(1-r2*ptr))-3*ptr*(1-r2*ptr)*(2-r2*ptr-ptr-(1-ptr)*(1-r2*ptr))+(1-ptr)*ptr*(1-r2*ptr)-(1-ptr)^2*ptr*(1-r2*ptr))*r1-ptr*(1-r2*ptr)^2+(4-ptr-3*r2*ptr)*(2-r2*ptr-ptr-(1-ptr)*(1-r2*ptr))-(1-ptr)*(1-r2*ptr)-(1-ptr)^2*r2*ptr
y =
((1-r1*ptr)*(1-ptr)*(2-(1-r1*ptr)*(1-ptr))+(1-r1*ptr)*ptr*(11-6*(1-r1*ptr)*(1-ptr)))*r2-(1-r1*ptr)*(11-6*(1-r1*ptr)*(1-ptr))
I used the following command
z = solve(x,y,r1,r2)
Result i got is z =
r1: [4x1 sym]
r2: [4x1 sym]
How to find r1 & r2 ????
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Mathematics dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!