Solving an equation with an unknown in the numerator and denominator
2 ビュー (過去 30 日間)
古いコメントを表示
Hello,
I'm trying to solve this equation for M (shown below), everything is unknown besides M. I tried using the solve function however it returned an implicit solution. Is there any way I can solve this equation to return an explicit value?
Here's the ouput:
Thanks in advance
syms M positive
A = (k+1)/(2*(k-1));
D= k-1;
E= k+1;
syms s;
eqn = (1/M)*((2+(D*M^2))/(E))^A == 3.5;
S=solve(eqn, M,'MaxDegree',3)
0 件のコメント
回答 (1 件)
Stephan
2020 年 11 月 17 日
syms M k
A = (k+1)/(2*(k-1));
D = k-1;
E = k+1;
eqn = (1/M)*((2+(D*M^2))/(E))^A == 3.5;
sol = vpasolve(eqn);
pretty(eqn)
M_sol = sol.M
k_sol = sol.k
test = subs(eqn,[M,k],[M_sol,k_sol])
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Ordinary Differential Equations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!