Skip to main content

poly_from_roots

Function poly_from_roots 

Source
pub fn poly_from_roots(roots: &[Complex<f64>]) -> Vec<f64>
Expand description

The coefficients of ∏ (s − rᵢ), highest power first (NumPy’s poly), with the imaginary parts dropped when the roots come in conjugate pairs.