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!