Skip to main content

invres

Function invres 

Source
pub fn invres(
    r: &[Complex<f64>],
    p: &[Complex<f64>],
    k: &[f64],
    tol: f64,
    rtype: RootType,
) -> (Vec<Complex<f64>>, Vec<Complex<f64>>)
Expand description

b(s) and a(s) from a partial-fraction expansion (SciPy’s invres); repeated poles must be adjacent. Complex results whose imaginary parts cancel to rounding are returned as real parts together with the largest imaginary part dropped.