Tasked with solving for x
Show older comments
hw 4 : solve for x (7x^8 + 9x^7 - 6x^5 + 3x^3 - 4x +12.5 = 0)
Answers (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)
Categories
Find more on Symbolic Math Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!