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!