[][src]Trait gauss_quad::gaussian_quadrature::DefiniteIntegral

pub trait DefiniteIntegral {
    fn argument_transformation(x: f64, a: f64, b: f64) -> f64;
fn scale_factor(a: f64, b: f64) -> f64;
fn integrate<F>(&self, a: f64, b: f64, integrand: F) -> f64
    where
        F: Fn(f64) -> f64
; }

Required methods

fn argument_transformation(x: f64, a: f64, b: f64) -> f64

fn scale_factor(a: f64, b: f64) -> f64

fn integrate<F>(&self, a: f64, b: f64, integrand: F) -> f64 where
    F: Fn(f64) -> f64

Loading content...

Implementors

impl DefiniteIntegral for GaussLegendre[src]

fn integrate<F>(&self, a: f64, b: f64, integrand: F) -> f64 where
    F: Fn(f64) -> f64
[src]

Perform quadrature of integrand using given nodes x and weights w

Loading content...