Skip to main content

roots

Function roots 

Source
pub fn roots(p: &[f64]) -> Result<Vec<Complex<f64>>, ErrorsJSL>
Expand description

The roots of a polynomial, highest power first (NumPy’s roots): leading zeros are dropped, trailing zeros give roots at 0, and the rest are the eigenvalues of the companion matrix. Complex-conjugate pairs are listed with the positive imaginary part first, as LAPACK does.