Expand description
Polynomial roots as the eigenvalues of the companion matrix: all (complex) roots, or the real ones, polished and with repeated roots merged.
See the book entry Polynomial roots.
Functions§
- polynomial_
roots - Returns the real roots of a polynomial in ascending order.
- polynomial_
roots_ complex - All roots of a polynomial, complex ones included, as the eigenvalues of its companion matrix
(the method of MATLAB’s
roots), sorted by real part and then imaginary part. Repeated roots appear with their multiplicity (and, being ill-conditioned, are accurate only to aboutε^(1/m)for multiplicitym).