pub fn integrate_laguerre<N: ComplexField + FromPrimitive + Copy, F: FnMut(N::RealField) -> N>(
    f: F,
    tol: N::RealField
) -> Result<N, String>
where <N as ComplexField>::RealField: FromPrimitive + Copy,
Expand description

Numerically integrate an integral of the form int_0^inf f(x) exp(-x) dx within a tolerance.

Given a function, numerically integrate using Gaussian-Laguerre Quadrature until two consecutive iterations are within tolerance or the maximum number of iterations is exceeded.