Tasked with solving for x
显示 更早的评论
hw 4 : solve for x (7x^8 + 9x^7 - 6x^5 + 3x^3 - 4x +12.5 = 0)
回答(1 个)
syms x
RC = @() randi([-25 25]);
eqn = RC()*x^5 + RC()*x^3 + RC()*x^2 + RC() == 0
p = sym2poly(lhs(eqn) - rhs(eqn))
roots(p)
类别
在 帮助中心 和 File Exchange 中查找有关 Symbolic Math Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!