Effacer les filtres
Effacer les filtres

how to choose the intended answer of an equation that has 4 solutions?

2 vues (au cours des 30 derniers jours)
fatemeh p
fatemeh p le 3 Avr 2019
Commenté : fatemeh p le 3 Avr 2019
hi, i used vpasolve to solve an equation that has 4 solutions but the problem is i need the one that is between 0 and 1.
how can i choose that one?
M2=vpasolve((((1+1.4*M1^2)/(1+1.4*M2^2))^2*((M2/M1)^2)*((1+0.2*M2^2)/(1+0.2*M1^2)))-(To2/To1),M2);
its because i need to put that one value in another equation.
  2 commentaires
madhan ravi
madhan ravi le 3 Avr 2019
Provide the missing values to test.
madhan ravi
madhan ravi le 3 Avr 2019
Modifié(e) : madhan ravi le 3 Avr 2019
What if the any of the solution lies between 0 & 1 like it does now???

Connectez-vous pour commenter.

Réponse acceptée

madhan ravi
madhan ravi le 3 Avr 2019
R = double(M2);
Wanted = R(R>0 & R<1)

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by