Trait softposit::MathConsts

source ·
pub trait MathConsts {
Show 18 associated constants and 0 method const E: Self; const FRAC_1_PI: Self; const FRAC_1_SQRT_2: Self; const FRAC_2_PI: Self; const FRAC_2_SQRT_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 LN_10: Self; const LN_2: Self; const LOG10_E: Self; const LOG2_E: Self; const PI: Self; const SQRT_2: Self; const LOG2_10: Self; const LOG10_2: Self;
}

Required Associated Constants§

Euler’s number (e) = 2.7182818284590452353602874713526625

1/π = 0.318309886183790671537767526745028724

1/sqrt(2) = 0.707106781186547524400844362104849039

2/π = 0.636619772367581343075535053490057448

2/sqrt(π) = 1.12837916709551257389615890312154517

π/2 = 1.57079632679489661923132169163975144

π/3 = 1.04719755119659774615421446109316763

π/4 = 0.785398163397448309615660845819875721

π/6 = 0.52359877559829887307710723054658381

π/8 = 0.39269908169872415480783042290993786

ln(10) = 2.30258509299404568401799145468436421

ln(2) = 0.693147180559945309417232121458176568

log10(e) = 0.434294481903251827651128918916605082

log2(e) = 1.44269504088896340735992468100189214

Archimedes’ constant (π) = 3.14159265358979323846264338327950288

sqrt(2) = 1.41421356237309504880168872420969808

log2(10) = 3.32192809488736234787031942948939018

log10(2) = 0.301029995663981195213738894724493027

Implementors§