Skip to main content

BernoulliNumbers

Trait BernoulliNumbers 

Source
pub trait BernoulliNumbers: FloatElement {
    const B2N: &'static [Self];
}
Expand description

Static Bernoulli number tables for a float format.

Implemented for f32 and f64 here, and for Compensated<f32> / Compensated<f64> by thermite-compensated under its special feature.

Required Associated Constants§

Source

const B2N: &'static [Self]

$B_2, B_4, B_6, \ldots$, every even-index Bernoulli number finite in Self, starting at $B_2$, so that entry i is $B_{2i+2}$.

See the module docs for why the table ends where it does, and why $B_0$ and $B_1$ are not in it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BernoulliNumbers for f32

Source§

const B2N: &'static [f32]

Source§

impl BernoulliNumbers for f64

Source§

const B2N: &'static [f64]

Implementors§

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