[−][src]Function bacon_sci::integrate::integrate_gaussian
pub fn integrate_gaussian<N: ComplexField, F: FnMut(N::RealField) -> N>(
left: N::RealField,
right: N::RealField,
f: F,
tol: N::RealField
) -> Result<N, String>
Numerically integrate a function over an interval within a tolerance.
Given a function and end points, numerically intgerate using Gaussian-Legedre Quadrature until two consecutive iterations are within tolerance or the maximum number of iterations is exceeded.