Skip to main content

bernoulli_terms

Function bernoulli_terms 

Source
pub const fn bernoulli_terms(precision: PrecisionPolicy) -> usize
Expand description

Correction terms by precision tier. The dropped term bounds the error directly, and the series is convergent-then-asymptotic in this range, so the tiers are: 8 terms is 4.4e-16, 4 is around 1e-11, and 2 is around 1e-7, which straddles f32’s floor, where the whole tail is nearly free anyway.

Last built: 2026-09-08 21:35:55 UTC