[][src]Function gkquad::prelude::integral

pub fn integral<F: Integrand, I: Into<Range>>(
    f: F,
    range: I
) -> IntegrationResult

Performs integration using QAGS algorithm, which achieves great performance for many kinds of functions.

Examples

use gkquad::single::integral;

let result = integral(|x: f64| x.sqrt(), 1.0..2.0).estimate();