Solving 2 degree polynomial
4 次查看(过去 30 天)
显示 更早的评论
Can anyone please help me with this
mu = 0.15; SW = 9.5106e+03; Cldeck = -1.8001; gammaw = 9.81; mu1 = 1.3; L=40; W = 12.5; mu2 = 12; sigma1 = 0.5; sigma2 = 1; hb = 10; gd = 1.1; n = 4; gw = 0.388; Z1 = 0.7602*x; Z2 = 0.6497*x
GZ = (mu*(SW-((0.5*Cldeck*gammaw*(mu1+Z1*sigma1).^2*L*W) + (gammaw*(L*((mu2+Z2*sigma2)-hb-gd)*W + (L*gd*gw*n))))))==0;
beta = round(solve(GZ,x),4)
- 0.922 - 4.2175i
- 0.922 + 4.2175i
I am getting imaginary roots for this equation but actually solving this by calculator leads to real roots why so?
actual roots are
-0.922
-0.922
4 个评论
David Hill
2021-4-12
syms x;
mu = 0.15; SW = 9.5106e+03; Cldeck = -1.8001; gammaw = 9.81; mu1 = 1.3; L=40; W = 12.5;
mu2 = 12; sigma1 = 0.5; sigma2 = 1; hb = 10; gd = 1.1; n = 4; gw = 0.388;
Z1 = 0.7602*x; Z2 = 0.6497*x;
GZ = (mu*(SW-((0.5*Cldeck*gammaw*(mu1+Z1*sigma1).^2*L*W) +...
(gammaw*(L*((mu2+Z2*sigma2)-hb-gd)*W + (L*gd*gw*n))))))==0;
simplify(GZ)
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Polynomials 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!