Roots function is solving eigth order polynomial equation as fifth order.
Ältere Kommentare anzeigen
I have an equation : 

Using coeffs(), i get their coefficients, flip them left to right and then use roots() function to get its zeroes.
But, when
, coeffs() function gives coeffs of non-zero terms only,
, coeffs() function gives coeffs of non-zero terms only, that is, for fliplr(coeffs(fn)) = [a,c,e,g,i]
So, when I put this coeffs() solution in roots(), it considers it as fifth order polynomial.
How can I get around this problem?
2 Kommentare
David Wilson
am 14 Sep. 2019
Have you looked at coeffsort in the user's group?
Samridh Sharma
am 14 Sep. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!