pub trait ExtFloatConst: Sized {
Show 84 associated constants and 0 method
const ONE: Self;
const ZERO: Self;
const NEG_ONE: Self;
const NEG_ZERO: Self;
const NAN: Self;
const INFINITY: Self;
const NEG_INFINITY: Self;
const MIN: Self;
const MIN_POSITIVE: Self;
const MAX: Self;
const MIN_EXP: i32;
const MAX_EXP: i32;
const MIN_10_EXP: i32;
const MAX_10_EXP: i32;
const EPSILON: Self;
const LOW_MARGIN: Self;
const MEDIUM_MARGIN: Self;
const HIGH_MARGIN: Self;
const RADIX: u32;
const DIGITS: u32;
const MANTISSA_DIGITS: u32;
const PI: Self;
const FRAC_PI_2: Self;
const FRAC_PI_3: Self;
const FRAC_PI_4: Self;
const FRAC_PI_6: Self;
const FRAC_PI_8: Self;
const SQRT_PI: Self;
const FRAC_1_PI: Self;
const FRAC_1_SQRT_PI: Self;
const FRAC_1_SQRT_2PI: Self;
const FRAC_2_PI: Self;
const FRAC_2_SQRT_PI: Self;
const TAU: Self;
const FRAC_TAU_2: Self;
const FRAC_TAU_3: Self;
const FRAC_TAU_4: Self;
const FRAC_TAU_5: Self;
const FRAC_TAU_6: Self;
const FRAC_TAU_8: Self;
const FRAC_TAU_9: Self;
const FRAC_TAU_12: Self;
const FRAC_TAU_16: Self;
const FRAC_TAU_24: Self;
const FRAC_TAU_72: Self;
const FRAC_TAU_360: Self;
const FRAC_360_TAU: Self;
const SQRT_TAU: Self;
const FRAC_1_TAU: Self;
const FRAC_1_SQRT_TAU: Self;
const FRAC_2_TAU: Self;
const FRAC_2_SQRT_TAU: Self;
const ARC_DEGREE: Self;
const ARC_MINUTE: Self;
const ARC_SECOND: Self;
const PHI: Self;
const SQ_PHI: Self;
const FRAC_1_PHI: Self;
const NEG_FRAC_1_PHI: Self;
const SQRT_PHI: Self;
const FRAC_1_SQRT_PHI: Self;
const TRIBONACCI: Self;
const SQRT_2: Self;
const FRAC_1_SQRT_2: Self;
const SQRT_3: Self;
const FRAC_1_SQRT_3: Self;
const SQRT_5: Self;
const SQRT_6: Self;
const SQRT_7: Self;
const SQRT_8: Self;
const SQRT_10: Self;
const SQRT_11: Self;
const SQRT_12: Self;
const CBRT_2: Self;
const CBRT_3: Self;
const FRAC_1_CBRT_3: Self;
const E: Self;
const EGAMMA: Self;
const LOG2_E: Self;
const LOG2_10: Self;
const LOG10_E: Self;
const LOG10_2: Self;
const LN_2: Self;
const LN_10: Self;
}
Expand description
Extension trait for floating-point types. Associated constants.
§Constants
-
Representation, precision and computational bounds:
NAN
,INFINITY
,NEG_INFINITY
,MIN
,MIN_POSITIVE
,MAX
,MIN_EXP
,MAX_EXP
,MIN_10_EXP
,MAX_10_EXP
,EPSILON
,RADIX
,DIGITS
,MANTISSA_DIGITS
. -
Arc degrees:
ARC_DEGREE
,ARC_MINUTE
,ARC_SECOND
. -
Pi (π) related: π, π/2, π/3, π/4, π/6, π/8, √π, 1/π, 1/√π, 2/π, 2/√π.
-
Tau (τ) related: τ, τ/2, τ/3, τ/4, τ/5, τ/6, τ/8, τ/9, τ/12, τ/16, τ/24, τ/72, τ/360, 360/τ, √τ, 1/τ, 1/√τ, 2/τ, 2/√τ.
-
Related to integer roots: √2, 1/√2, √3, 1/√3, √5, √6, √7, √8, √10, √11, √12, ∛2, ∛3, 1/∛3.
-
Other constants:
E
,EGAMMA
,LOG2_E
,LOG2_10
,LOG10_E
,LOG10_2
,LN_2
,LN_10
.
Required Associated Constants§
Sourceconst NEG_INFINITY: Self
const NEG_INFINITY: Self
Negative infinity (-∞).
Sourceconst MIN_POSITIVE: Self
const MIN_POSITIVE: Self
Smallest positive normal value.
Sourceconst MIN_10_EXP: i32
const MIN_10_EXP: i32
Minimum x for which 10x is normal.
Sourceconst MAX_10_EXP: i32
const MAX_10_EXP: i32
Maximum x for which 10x is normal.
Sourceconst EPSILON: Self
const EPSILON: Self
Machine epsilon value.
This is the smallest difference detectable between 1.0 and the next representable number in the floating-point format.
Sourceconst LOW_MARGIN: Self
const LOW_MARGIN: Self
Allows for minimal deviation; use for high precision needs..
Sourceconst MEDIUM_MARGIN: Self
const MEDIUM_MARGIN: Self
Accommodates moderate deviation; balances precision and flexibility.
Sourceconst HIGH_MARGIN: Self
const HIGH_MARGIN: Self
Permits generous deviation; suitable for less precise scenarios.
Sourceconst MANTISSA_DIGITS: u32
const MANTISSA_DIGITS: u32
Number of significant digits in base 2.
Sourceconst PI: Self
const PI: Self
$ π = \frac{1}{2} τ = 180º $
(A000796)
≈ 3.14159265…
The ratio of the circumference to the diameter, a half-turn.
Sourceconst FRAC_1_SQRT_PI: Self
const FRAC_1_SQRT_PI: Self
$ 1/\sqrt{π} = 1/\sqrt{τ/2} $
(A087197)
≈ 0.56418958…
Sourceconst FRAC_1_SQRT_2PI: Self
const FRAC_1_SQRT_2PI: Self
$ 1/\sqrt{2π} = 1/\sqrt{τ} $
(A231863)
≈ 0.39894228…
Sourceconst FRAC_2_SQRT_PI: Self
const FRAC_2_SQRT_PI: Self
$ 2/\sqrt{π} $
(A190732)
≈ 1.12837916…
Sourceconst TAU: Self
const TAU: Self
$ τ = 2π = 360º $
(A019692)
≈ 6.28318530…
The ratio of the circumference to the radius, a full-turn.
Sourceconst FRAC_TAU_2: Self
const FRAC_TAU_2: Self
$ τ/2 = π = 180º $
(A000796)
≈ 3.14159265…
Sourceconst FRAC_TAU_3: Self
const FRAC_TAU_3: Self
$ τ/3 = 2π/3 = 120º $
(A019693)
≈ 2.09439510…
Sourceconst FRAC_TAU_4: Self
const FRAC_TAU_4: Self
$ τ/4 = π/2 = 90º $
(A019693)
≈ 1.57079632…
Sourceconst FRAC_TAU_5: Self
const FRAC_TAU_5: Self
$ τ/5 = 2π/5 = 72º $
(A019694)
≈ 1.25663706…
Sourceconst FRAC_TAU_6: Self
const FRAC_TAU_6: Self
$ τ/6 = π/3 = 60º $
(A019670)
≈ 1.04719755…
Sourceconst FRAC_TAU_8: Self
const FRAC_TAU_8: Self
$ τ/8 = π/4 = 45º $
(A003881)
≈ 0.78539816…
Sourceconst FRAC_TAU_9: Self
const FRAC_TAU_9: Self
$ τ/9 = 2π/9 = 40º $
(A019696)
≈ 0.69813170…
Sourceconst FRAC_TAU_12: Self
const FRAC_TAU_12: Self
$ τ/12 = π/6 = 30º $
(A019673)
≈ 0.52359877…
Sourceconst FRAC_TAU_16: Self
const FRAC_TAU_16: Self
$ τ/16 = π/8 = 22.5º $
(A019675)
≈ 0.39269908…
Sourceconst FRAC_TAU_24: Self
const FRAC_TAU_24: Self
$ τ/24 = π/12 = 15º $
(A019679)
≈ 0.26179938…
Sourceconst FRAC_TAU_72: Self
const FRAC_TAU_72: Self
$ τ/72 = π/36 = 5º $
≈ 0.08726646…
Sourceconst FRAC_TAU_360: Self
const FRAC_TAU_360: Self
Sourceconst FRAC_360_TAU: Self
const FRAC_360_TAU: Self
$ 360/τ = 180/π $
(A072097)
≈ 57.2957795…
Sourceconst FRAC_1_TAU: Self
const FRAC_1_TAU: Self
$ 1/τ = 1/2π $
(A086201)
≈ 0.15915494…
Sourceconst FRAC_1_SQRT_TAU: Self
const FRAC_1_SQRT_TAU: Self
$ 1/\sqrt{τ} = 1/\sqrt{2π} $
(A231863)
≈ 0.39894228…
Sourceconst FRAC_2_TAU: Self
const FRAC_2_TAU: Self
$ 2/τ = 1/π $
(A049541)
≈ 0.31830988…
Sourceconst FRAC_2_SQRT_TAU: Self
const FRAC_2_SQRT_TAU: Self
$ 2/\sqrt{τ} = \sqrt{2/π} $
(A076668)
≈ 0.79788456…
Sourceconst ARC_DEGREE: Self
const ARC_DEGREE: Self
Sourceconst ARC_MINUTE: Self
const ARC_MINUTE: Self
$ τ/(360*60) = 1’ $ arc minute
(wikipedia)
≈ 0.00029088…
Sourceconst ARC_SECOND: Self
const ARC_SECOND: Self
$ τ/(360 * 60 * 60) = 1’’ $ arc second
(wikipedia)
≈ 0.00000484…
Sourceconst PHI: Self
const PHI: Self
$ φ = (1+\sqrt{5})/2 $
(A001622)
≈ 1.61803398…
The golden ratio.
Continued fraction: $ [1;1,1,1,…] $
Sourceconst FRAC_1_PHI: Self
const FRAC_1_PHI: Self
Sourceconst NEG_FRAC_1_PHI: Self
const NEG_FRAC_1_PHI: Self
$ -1/φ = 1-φ $
≈ -0.61803398…
The negative reciprocal of φ and its conjugate in $ x^2-x-1 $.
Sourceconst FRAC_1_SQRT_PHI: Self
const FRAC_1_SQRT_PHI: Self
$ 1/\sqrt{φ} = \sqrt{φ/φ^2} = \sqrt{φ^2-2} $
(A197762)
≈ 0.78615137…
Sourceconst TRIBONACCI: Self
const TRIBONACCI: Self
(A058265)
≈ 1.83928675…
The tribonacci constant.
Sourceconst FRAC_1_SQRT_2: Self
const FRAC_1_SQRT_2: Self
Sourceconst FRAC_1_SQRT_3: Self
const FRAC_1_SQRT_3: Self
$ 1/\sqrt{3} = \sqrt{1/3} $
(A020760,
≈ 0.57735026…
Sourceconst FRAC_1_CBRT_3: Self
const FRAC_1_CBRT_3: Self
$ 1/\sqrt[\small 3]{3} = (\normalsize\frac{1}{3})^{\small\frac{1}{3}} $
(A072365)
≈ 0.69336127…
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl ExtFloatConst for f16
Available on crate feature nightly_float
only.§Mathematical constants
impl ExtFloatConst for f16
nightly_float
only.§Mathematical constants
const ONE: f16 = 1f16
const ZERO: f16 = 0f16
const NEG_ONE: f16 = -1f16
const NEG_ZERO: f16 = -0f16
const NAN: f16 = NaN_f16
const INFINITY: f16 = +Inf_f16
const NEG_INFINITY: f16 = -Inf_f16
const EPSILON: f16 = 9.7656E-4f16
const LOW_MARGIN: f16 = 1.0002E-4f16
const MEDIUM_MARGIN: f16 = 0.0010004f16
const HIGH_MARGIN: f16 = 0.010002f16
const RADIX: u32 = 2u32
const DIGITS: u32 = 3u32
const MANTISSA_DIGITS: u32 = 11u32
const MIN: f16 = -65504f16
const MIN_POSITIVE: f16 = 6.1035E-5f16
const MAX: f16 = 65504f16
const MIN_EXP: i32 = -13i32
const MAX_EXP: i32 = 16i32
const MIN_10_EXP: i32 = -4i32
const MAX_10_EXP: i32 = 4i32
const PI: f16 = 3.1406f16
const FRAC_PI_2: f16 = 1.5703f16
const FRAC_PI_3: f16 = 1.0469f16
const FRAC_PI_4: f16 = 0.78515f16
const FRAC_PI_6: f16 = 0.52344f16
const FRAC_PI_8: f16 = 0.39258f16
const SQRT_PI: f16 = 1.7725f16
const FRAC_1_PI: f16 = 0.31836f16
const FRAC_1_SQRT_PI: f16 = 0.56396f16
const FRAC_1_SQRT_2PI: f16 = 0.39893f16
const FRAC_2_PI: f16 = 0.63672f16
const FRAC_2_SQRT_PI: f16 = 1.1279f16
const TAU: f16 = 6.2813f16
const FRAC_TAU_2: f16 = 3.1406f16
const FRAC_TAU_3: f16 = 2.0938f16
const FRAC_TAU_4: f16 = 1.5703f16
const FRAC_TAU_5: f16 = 1.2568f16
const FRAC_TAU_6: f16 = 1.0469f16
const FRAC_TAU_8: f16 = 0.78515f16
const FRAC_TAU_9: f16 = 0.69824f16
const FRAC_TAU_12: f16 = 0.52344f16
const FRAC_TAU_16: f16 = 0.39258f16
const FRAC_TAU_24: f16 = 0.26172f16
const FRAC_TAU_72: f16 = 0.08728f16
const FRAC_TAU_360: f16 = 0.017456f16
const FRAC_360_TAU: f16 = 57.281f16
const SQRT_TAU: f16 = 2.5059f16
const FRAC_1_TAU: f16 = 0.15918f16
const FRAC_1_SQRT_TAU: f16 = 0.39893f16
const FRAC_2_TAU: f16 = 0.31836f16
const FRAC_2_SQRT_TAU: f16 = 0.79785f16
const ARC_DEGREE: f16 = 0.017456f16
const ARC_MINUTE: f16 = 2.9087E-4f16
const ARC_SECOND: f16 = 4.828E-6f16
const PHI: f16 = 1.6182f16
const SQ_PHI: f16 = 2.6172f16
const FRAC_1_PHI: f16 = 0.61816f16
const NEG_FRAC_1_PHI: f16 = -0.61816f16
const SQRT_PHI: f16 = 1.2725f16
const FRAC_1_SQRT_PHI: f16 = 0.78613f16
const TRIBONACCI: f16 = 1.8389f16
const SQRT_2: f16 = 1.4141f16
const FRAC_1_SQRT_2: f16 = 0.70703f16
const SQRT_3: f16 = 1.7324f16
const FRAC_1_SQRT_3: f16 = 0.57715f16
const SQRT_5: f16 = 2.2363f16
const SQRT_6: f16 = 2.4492f16
const SQRT_7: f16 = 2.6465f16
const SQRT_8: f16 = 2.8281f16
const SQRT_10: f16 = 3.1621f16
const SQRT_11: f16 = 3.3164f16
const SQRT_12: f16 = 3.4648f16
const CBRT_2: f16 = 1.2598f16
const CBRT_3: f16 = 1.4424f16
const FRAC_1_CBRT_3: f16 = 0.69336f16
const E: f16 = 2.7188f16
const EGAMMA: f16 = 0.57715f16
const LOG2_E: f16 = 1.4424f16
const LOG2_10: f16 = 3.3223f16
const LOG10_E: f16 = 0.43433f16
const LOG10_2: f16 = 0.30103f16
const LN_2: f16 = 0.69336f16
const LN_10: f16 = 2.3027f16
Source§impl ExtFloatConst for f32
§Mathematical constants
impl ExtFloatConst for f32
§Mathematical constants
const ONE: f32 = 1f32
const ZERO: f32 = 0f32
const NEG_ONE: f32 = -1f32
const NEG_ZERO: f32 = -0f32
const NAN: f32 = NaN_f32
const INFINITY: f32 = +Inf_f32
const NEG_INFINITY: f32 = -Inf_f32
const EPSILON: f32 = 1.1920929E-7f32
const LOW_MARGIN: f32 = 1.00000001E-7f32
const MEDIUM_MARGIN: f32 = 9.99999997E-7f32
const HIGH_MARGIN: f32 = 9.99999974E-6f32
const RADIX: u32 = 2u32
const DIGITS: u32 = 6u32
const MANTISSA_DIGITS: u32 = 24u32
const MIN: f32 = -3.40282347E+38f32
const MIN_POSITIVE: f32 = 1.17549435E-38f32
const MAX: f32 = 3.40282347E+38f32
const MIN_EXP: i32 = -125i32
const MAX_EXP: i32 = 128i32
const MIN_10_EXP: i32 = -37i32
const MAX_10_EXP: i32 = 38i32
const PI: f32 = 3.14159274f32
const FRAC_PI_2: f32 = 1.57079637f32
const FRAC_PI_3: f32 = 1.04719758f32
const FRAC_PI_4: f32 = 0.785398185f32
const FRAC_PI_6: f32 = 0.52359879f32
const FRAC_PI_8: f32 = 0.392699093f32
const SQRT_PI: f32 = 1.7724539f32
const FRAC_1_PI: f32 = 0.318309873f32
const FRAC_1_SQRT_PI: f32 = 0.564189613f32
const FRAC_1_SQRT_2PI: f32 = 0.398942292f32
const FRAC_2_PI: f32 = 0.636619746f32
const FRAC_2_SQRT_PI: f32 = 1.12837923f32
const TAU: f32 = 6.28318548f32
const FRAC_TAU_2: f32 = 3.14159274f32
const FRAC_TAU_3: f32 = 2.09439516f32
const FRAC_TAU_4: f32 = 1.57079637f32
const FRAC_TAU_5: f32 = 1.2566371f32
const FRAC_TAU_6: f32 = 1.04719758f32
const FRAC_TAU_8: f32 = 0.785398185f32
const FRAC_TAU_9: f32 = 0.69813168f32
const FRAC_TAU_12: f32 = 0.52359879f32
const FRAC_TAU_16: f32 = 0.392699093f32
const FRAC_TAU_24: f32 = 0.261799395f32
const FRAC_TAU_72: f32 = 0.0872664601f32
const FRAC_TAU_360: f32 = 0.0174532924f32
const FRAC_360_TAU: f32 = 57.2957802f32
const SQRT_TAU: f32 = 2.50662827f32
const FRAC_1_TAU: f32 = 0.159154937f32
const FRAC_1_SQRT_TAU: f32 = 0.398942292f32
const FRAC_2_TAU: f32 = 0.318309873f32
const FRAC_2_SQRT_TAU: f32 = 0.797884583f32
const ARC_DEGREE: f32 = 0.0174532924f32
const ARC_MINUTE: f32 = 2.90888216E-4f32
const ARC_SECOND: f32 = 4.848137E-6f32
const PHI: f32 = 1.61803401f32
const SQ_PHI: f32 = 2.61803389f32
const FRAC_1_PHI: f32 = 0.618034005f32
const NEG_FRAC_1_PHI: f32 = -0.618034005f32
const SQRT_PHI: f32 = 1.27201962f32
const FRAC_1_SQRT_PHI: f32 = 0.786151349f32
const TRIBONACCI: f32 = 1.8392868f32
const SQRT_2: f32 = 1.41421354f32
const FRAC_1_SQRT_2: f32 = 0.707106769f32
const SQRT_3: f32 = 1.73205078f32
const FRAC_1_SQRT_3: f32 = 0.577350259f32
const SQRT_5: f32 = 2.23606801f32
const SQRT_6: f32 = 2.44948983f32
const SQRT_7: f32 = 2.64575124f32
const SQRT_8: f32 = 2.82842708f32
const SQRT_10: f32 = 3.1622777f32
const SQRT_11: f32 = 3.31662488f32
const SQRT_12: f32 = 3.46410155f32
const CBRT_2: f32 = 1.25992107f32
const CBRT_3: f32 = 1.44224954f32
const FRAC_1_CBRT_3: f32 = 0.693361282f32
const E: f32 = 2.71828175f32
const EGAMMA: f32 = 0.577215672f32
const LOG2_E: f32 = 1.44269502f32
const LOG2_10: f32 = 3.32192802f32
const LOG10_E: f32 = 0.434294492f32
const LOG10_2: f32 = 0.30103001f32
const LN_2: f32 = 0.693147182f32
const LN_10: f32 = 2.30258512f32
Source§impl ExtFloatConst for f64
§Mathematical constants
impl ExtFloatConst for f64
§Mathematical constants
const ONE: f64 = 1f64
const ZERO: f64 = 0f64
const NEG_ONE: f64 = -1f64
const NEG_ZERO: f64 = -0f64
const NAN: f64 = NaN_f64
const INFINITY: f64 = +Inf_f64
const NEG_INFINITY: f64 = -Inf_f64
const EPSILON: f64 = 2.2204460492503131E-16f64
const LOW_MARGIN: f64 = 9.9999999999999998E-13f64
const MEDIUM_MARGIN: f64 = 1.0000000000000001E-9f64
const HIGH_MARGIN: f64 = 9.9999999999999995E-7f64
const RADIX: u32 = 2u32
const DIGITS: u32 = 15u32
const MANTISSA_DIGITS: u32 = 53u32
const MIN: f64 = -1.7976931348623157E+308f64
const MIN_POSITIVE: f64 = 2.2250738585072014E-308f64
const MAX: f64 = 1.7976931348623157E+308f64
const MIN_EXP: i32 = -1_021i32
const MAX_EXP: i32 = 1_024i32
const MIN_10_EXP: i32 = -307i32
const MAX_10_EXP: i32 = 308i32
const PI: f64 = 3.1415926535897931f64
const FRAC_PI_2: f64 = 1.5707963267948966f64
const FRAC_PI_3: f64 = 1.0471975511965979f64
const FRAC_PI_4: f64 = 0.78539816339744828f64
const FRAC_PI_6: f64 = 0.52359877559829893f64
const FRAC_PI_8: f64 = 0.39269908169872414f64
const SQRT_PI: f64 = 1.7724538509055161f64
const FRAC_1_PI: f64 = 0.31830988618379069f64
const FRAC_1_SQRT_PI: f64 = 0.56418958354775628f64
const FRAC_1_SQRT_2PI: f64 = 0.3989422804014327f64
const FRAC_2_PI: f64 = 0.63661977236758138f64
const FRAC_2_SQRT_PI: f64 = 1.1283791670955126f64
const TAU: f64 = 6.2831853071795862f64
const FRAC_TAU_2: f64 = 3.1415926535897931f64
const FRAC_TAU_3: f64 = 2.0943951023931957f64
const FRAC_TAU_4: f64 = 1.5707963267948966f64
const FRAC_TAU_5: f64 = 1.2566370614359172f64
const FRAC_TAU_6: f64 = 1.0471975511965979f64
const FRAC_TAU_8: f64 = 0.78539816339744828f64
const FRAC_TAU_9: f64 = 0.69813170079773179f64
const FRAC_TAU_12: f64 = 0.52359877559829893f64
const FRAC_TAU_16: f64 = 0.39269908169872414f64
const FRAC_TAU_24: f64 = 0.26179938779914946f64
const FRAC_TAU_72: f64 = 0.087266462599716474f64
const FRAC_TAU_360: f64 = 0.017453292519943295f64
const FRAC_360_TAU: f64 = 57.295779513082323f64
const SQRT_TAU: f64 = 2.5066282746310007f64
const FRAC_1_TAU: f64 = 0.15915494309189535f64
const FRAC_1_SQRT_TAU: f64 = 0.3989422804014327f64
const FRAC_2_TAU: f64 = 0.31830988618379069f64
const FRAC_2_SQRT_TAU: f64 = 0.79788456080286541f64
const ARC_DEGREE: f64 = 0.017453292519943295f64
const ARC_MINUTE: f64 = 2.9088820866572158E-4f64
const ARC_SECOND: f64 = 4.8481368110953598E-6f64
const PHI: f64 = 1.6180339887498949f64
const SQ_PHI: f64 = 2.6180339887498949f64
const FRAC_1_PHI: f64 = 0.6180339887498949f64
const NEG_FRAC_1_PHI: f64 = -0.6180339887498949f64
const SQRT_PHI: f64 = 1.272019649514069f64
const FRAC_1_SQRT_PHI: f64 = 0.78615137775742328f64
const TRIBONACCI: f64 = 1.8392867552141612f64
const SQRT_2: f64 = 1.4142135623730951f64
const FRAC_1_SQRT_2: f64 = 0.70710678118654757f64
const SQRT_3: f64 = 1.7320508075688772f64
const FRAC_1_SQRT_3: f64 = 0.57735026918962573f64
const SQRT_5: f64 = 2.2360679774997898f64
const SQRT_6: f64 = 2.4494897427831779f64
const SQRT_7: f64 = 2.6457513110645907f64
const SQRT_8: f64 = 2.8284271247461903f64
const SQRT_10: f64 = 3.1622776601683795f64
const SQRT_11: f64 = 3.3166247903553998f64
const SQRT_12: f64 = 3.4641016151377544f64
const CBRT_2: f64 = 1.2599210498948732f64
const CBRT_3: f64 = 1.4422495703074083f64
const FRAC_1_CBRT_3: f64 = 0.69336127435063466f64
const E: f64 = 2.7182818284590451f64
const EGAMMA: f64 = 0.57721566490153287f64
const LOG2_E: f64 = 1.4426950408889634f64
const LOG2_10: f64 = 3.3219280948873622f64
const LOG10_E: f64 = 0.43429448190325182f64
const LOG10_2: f64 = 0.3010299956639812f64
const LN_2: f64 = 0.69314718055994529f64
const LN_10: f64 = 2.3025850929940459f64
Source§impl ExtFloatConst for f128
Available on crate feature nightly_float
only.§Mathematical constants
impl ExtFloatConst for f128
nightly_float
only.