pub const MAX_ADAPTIVE_DEPTH: u32 = 50;Expand description
Hard ceiling on adaptive bisection depth in
adaptive_quadrature_batch, regardless of
AdaptiveSettings::max_subdivisions.
A depth of 50 halvings shrinks an interval by a factor of 2^50 (about
10^15), at which point the sub-interval is at the rounding floor of any
abscissa a caller is likely to pass and further subdivision cannot improve
the answer. The ceiling exists so that a pathological integrand — one with a
genuine singularity inside the interval — terminates with
QuadratureStatus::ToleranceNotMet instead of consuming memory
indefinitely.
§Units
A count of bisections, dimensionless.