Solving (non-linear equation) for a single unknown?
Afficher commentaires plus anciens
I have this nonlinear equation and I need to find the value of Ms.

a1/a4= 1
P4 = 0.448159;
P1= 0.101325;
γ=1.4;
I was trying to solve it this way but it is obviously wrong.

syms M
P4 = 0.448159
P1= 0.101325
y=1.4
equ1 = P4/P1 == [(2*y/(y+1))*M^2-(y-1)/(y+1)]*[1-((y-1)/(y+1))*(M-1/M)]^-(2*y/(y-1));
[M] = fzero([equ1],[M])
Réponse acceptée
Plus de réponses (1)
Star Strider
le 5 Oct 2020
syms M
P4 = 0.448159
P1= 0.101325
y=1.4
equ1 = P4/P1 == [(2*y/(y+1))*M^2-(y-1)/(y+1)]*[1-((y-1)/(y+1))*(M-1/M)]^-(2*y/(y-1));
Ms = solve(equ1,M);
Msv = vpa(Ms)
producing:
Msv =
-0.10185626363218756417257616328639
- 0.10644518860890615670084999757915 - 0.036618213906838787751435372728374i
- 0.10644518860890615670084999757915 + 0.036618213906838787751435372728374i
- 0.13167891856268140659782656510051 - 0.089020165945488844111776993803467i
- 0.13167891856268140659782656510051 + 0.089020165945488844111776993803467i
- 0.29798382430301867914089211801632 - 0.10655492772947358270800196360489i
- 0.29798382430301867914089211801632 + 0.10655492772947358270800196360489i
1.3679197596493595518736224716577
0.21399593206465125085994080997702 - 2.5850229905649044544862013343752i
0.21399593206465125085994080997702 + 2.5850229905649044544862013343752i
5.2154139367256047527277605369217 - 9.7387628639309747245175842995618i
5.2154139367256047527277605369217 + 9.7387628639309747245175842995618i
15.473666314675764245001344179612 - 5.761291040160465785371267286251i
15.473666314675764245001344179612 + 5.761291040160465785371267286251i
.
Catégories
En savoir plus sur Stability Analysis 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!
