pub struct AdaptiveGL7K15IntegrationEngine {
pub max_subintervals: usize,
/* private fields */
}Expand description
Globally adaptive Gauss-Kronrod quadrature (the strategy of QUADPACK’s qag with its 15-point
rule): the interval with the largest error estimate is bisected until the estimates sum to
less than the tolerance.
Each panel is integrated with the 15-point Kronrod rule, which contains the 7-point Gauss rule; their difference, calibrated as in QUADPACK, estimates the error of the (far more accurate) Kronrod value. The rule is exact for polynomials of degree 23 on each panel, so smooth integrands need very few panels, while kinks, peaks and integrable endpoint singularities draw the bisections towards themselves.
The tolerance is absolute, raised if necessary to the rounding-error level
50 ε ∫|f|; integrate fails if it cannot be met within
max_subintervals panels, and
integrate_with_error returns the estimate either way.
Fields§
§max_subintervals: usizeThe largest number of panels (default 1000).