[][src]Function bacon_sci::integrate::integrate_simpson

pub fn integrate_simpson<N: ComplexField, F: FnMut(N::RealField) -> N>(
    left: N::RealField,
    right: N::RealField,
    f: F,
    tol: N::RealField,
    n_max: usize
) -> Result<N, String>

Numerically integrate a function over an interval within a tolerance.

Given a function and end points, numerically integrate using adaptive simpson's rule until the error is within tolerance or the maximum iterations are exceeded.