Tasked with solving for x
Afficher commentaires plus anciens
hw 4 : solve for x (7x^8 + 9x^7 - 6x^5 + 3x^3 - 4x +12.5 = 0)
Réponses (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)
Catégories
En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!