Skip to main content

gauss_legendre_rule

Function gauss_legendre_rule 

Source
pub fn gauss_legendre_rule(a: f64, b: f64) -> [(f64, f64); 10]
Expand description

The ten-point Gauss-Legendre rule on [a, b]: each node with its weight.

For a caller that needs the samples themselves rather than one scalar integral, such as a sum of several integrands over the same nodes. The weights carry the sign of b - a, as gauss_legendre’s do.