pub struct AdaptiveTrapezoidIntegrationEngine { /* private fields */ }Expand description
Adaptive trapezoid quadrature: each interval is compared with its two halves and split again wherever they disagree, so samples concentrate where the integrand changes quickly.
An interval [a, b] with midpoint c is accepted when the one-panel and two-panel trapezoid
values differ by less than its share of the tolerance; that difference is three times the
error of the two-panel value, so the estimate is conservative. The tolerance is halved at each
split, so the total error is bounded by roughly tolerance rather than by tolerance per
interval. Intervals that reach 50 levels of subdivision (2⁻⁵⁰ of the original) are accepted
as they are, which resolves jumps, where the difference shrinks only as fast as the tolerance;
a non-finite sample is an error.