Skip to main content

Module constants

Module constants 

Source
Expand description

High-precision mathematical constants, in f64 and f32 widths.

All constants are defined as pub const f64 with f32 variants available under the f32 submodule (e.g., constants::f32::PI).

Modules§

f32
f32 variants of all constants.

Constants§

APERY
CATALAN
CUBE_ROOT_2
CUBE_ROOT_3
DEG_TO_GRAD
DEG_TO_RAD
E
EULER_GAMMA
E_INV
E_SQ
E_SQRT
FEIGENBAUM
FEIGENBAUM2
GRAD_TO_DEG
GRAD_TO_RAD
HALF_PI
INF
INV_PI
INV_SQRT_PI
LN_2
LN_2PI
LN_10
LN_PI
LOG2_10
LOG2_E
LOG10_2
LOG10_E
LOG_2
LOG_10
NAN
PHI
PI
PI_CUBE
PI_SQ
QUARTER_PI
RAD_TO_DEG
SILVER_RATIO
SQRT_2
SQRT_3
SQRT_5
SQRT_6
SQRT_7
SQRT_2PI
SQRT_2_INV
SQRT_3_INV
SQRT_LN4
SQRT_PI
TAU
THIRD_PI
TWO_SQRT_PI