Skip to main content

ZetaConsts

Trait ZetaConsts 

Source
pub trait ZetaConsts {
    const LOG2_3: Self;
    const LOG2_5: Self;
    const LOG2_7: Self;
}
Expand description

Per-element constants: the base-2 logarithms of the primes under N. log2(pi) for the functional equation comes from FloatConsts. Declared for f32/f64. Add more as needed.

Required Associated Constants§

Source

const LOG2_3: Self

log2(3), for 3^-s = exp2(-s log2 3).

Source

const LOG2_5: Self

log2(5).

Source

const LOG2_7: Self

log2(7).

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 ZetaConsts for f32

Source§

const LOG2_3: f32 = 1.5849624872207642

Source§

const LOG2_5: f32 = 2.321928024291992

Source§

const LOG2_7: f32 = 2.8073549270629883

Source§

impl ZetaConsts for f64

Source§

const LOG2_3: f64 = 1.584962500721156

Source§

const LOG2_5: f64 = 2.321928094887362

Source§

const LOG2_7: f64 = 2.807354922057604

Implementors§

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