pub fn residue(
b: &[f64],
a: &[f64],
tol: f64,
rtype: RootType,
) -> Result<PartialFractions, ErrorsJSL>Expand description
The partial-fraction expansion of b(s)/a(s) in positive powers (SciPy’s residue):
Σ rᵢ/(s − pᵢ) + k(s), with terms r/(s − p)^j for poles repeated within tol.