Function rv::misc::gauss_legendre_quadrature_cached
source · pub fn gauss_legendre_quadrature_cached<F>(
f: F,
(a, b): (f64, f64),
weights: &[f64],
roots: &[f64],
) -> f64
Expand description
Gauss Legendre Quadrature with the table precomputed (cached)
§Type
f, n, (a,b) -> f64
f
: Numerical function (Fn(f64) -> f64
)(a,b)
: Interval of integrationweights
the vector of weightsroots
the vector of roots
§Reference
- A. N. Lowan et al. (1942)
- Keisan Online Calculator