Skip to main content

integrate_scalar

Function integrate_scalar 

Source
pub fn integrate_scalar<F>(
    f: F,
    a: f64,
    b: f64,
    tolerance: Tolerance,
) -> Result<f64, CoreError>
where F: FnMut(f64) -> f64,
Expand description

Integrates the scalar f over [a, b] to tolerance; see integrate.

ยงErrors

As integrate.