[−][src]Trait rin::math::Real
Trait shared by all reals.
Reals are equipped with functions that are commonly used on reals. The results of those functions only have to be approximately equal to the actual theoretical values.
Required Methods
fn floor(self) -> Self
fn ceil(self) -> Self
fn round(self) -> Self
fn trunc(self) -> Self
fn fract(self) -> Self
fn abs(self) -> Self
fn signum(self) -> Self
fn is_sign_positive(self) -> bool
fn is_sign_negative(self) -> bool
fn mul_add(self, a: Self, b: Self) -> Self
fn recip(self) -> Self
fn powi(self, n: i32) -> Self
fn powf(self, n: Self) -> Self
fn sqrt(self) -> Self
fn exp(self) -> Self
fn exp2(self) -> Self
fn ln(self) -> Self
fn log(self, base: Self) -> Self
fn log2(self) -> Self
fn log10(self) -> Self
fn max(self, other: Self) -> Self
fn min(self, other: Self) -> Self
fn cbrt(self) -> Self
fn hypot(self, other: Self) -> Self
fn sin(self) -> Self
fn cos(self) -> Self
fn tan(self) -> Self
fn asin(self) -> Self
fn acos(self) -> Self
fn atan(self) -> Self
fn atan2(self, other: Self) -> Self
fn sin_cos(self) -> (Self, Self)
fn exp_m1(self) -> Self
fn ln_1p(self) -> Self
fn sinh(self) -> Self
fn cosh(self) -> Self
fn tanh(self) -> Self
fn asinh(self) -> Self
fn acosh(self) -> Self
fn atanh(self) -> Self
fn pi() -> Self
fn two_pi() -> Self
fn frac_pi_2() -> Self
fn frac_pi_3() -> Self
fn frac_pi_4() -> Self
fn frac_pi_6() -> Self
fn frac_pi_8() -> Self
fn frac_1_pi() -> Self
fn frac_2_pi() -> Self
fn frac_2_sqrt_pi() -> Self
fn e() -> Self
fn log2_e() -> Self
fn log10_e() -> Self
fn ln_2() -> Self
fn ln_10() -> Self
Implementations on Foreign Types
impl Real for f64[src]
impl Real for f64fn floor(self) -> f64[src]
fn floor(self) -> f64fn ceil(self) -> f64[src]
fn ceil(self) -> f64fn round(self) -> f64[src]
fn round(self) -> f64fn trunc(self) -> f64[src]
fn trunc(self) -> f64fn fract(self) -> f64[src]
fn fract(self) -> f64fn abs(self) -> f64[src]
fn abs(self) -> f64fn signum(self) -> f64[src]
fn signum(self) -> f64fn is_sign_positive(self) -> bool[src]
fn is_sign_positive(self) -> boolfn is_sign_negative(self) -> bool[src]
fn is_sign_negative(self) -> boolfn mul_add(self, a: f64, b: f64) -> f64[src]
fn mul_add(self, a: f64, b: f64) -> f64fn recip(self) -> f64[src]
fn recip(self) -> f64fn powi(self, n: i32) -> f64[src]
fn powi(self, n: i32) -> f64fn powf(self, n: f64) -> f64[src]
fn powf(self, n: f64) -> f64fn sqrt(self) -> f64[src]
fn sqrt(self) -> f64fn exp(self) -> f64[src]
fn exp(self) -> f64fn exp2(self) -> f64[src]
fn exp2(self) -> f64fn ln(self) -> f64[src]
fn ln(self) -> f64fn log(self, base: f64) -> f64[src]
fn log(self, base: f64) -> f64fn log2(self) -> f64[src]
fn log2(self) -> f64fn log10(self) -> f64[src]
fn log10(self) -> f64fn max(self, other: f64) -> f64[src]
fn max(self, other: f64) -> f64fn min(self, other: f64) -> f64[src]
fn min(self, other: f64) -> f64fn cbrt(self) -> f64[src]
fn cbrt(self) -> f64fn hypot(self, other: f64) -> f64[src]
fn hypot(self, other: f64) -> f64fn sin(self) -> f64[src]
fn sin(self) -> f64fn cos(self) -> f64[src]
fn cos(self) -> f64fn tan(self) -> f64[src]
fn tan(self) -> f64fn asin(self) -> f64[src]
fn asin(self) -> f64fn acos(self) -> f64[src]
fn acos(self) -> f64fn atan(self) -> f64[src]
fn atan(self) -> f64fn atan2(self, other: f64) -> f64[src]
fn atan2(self, other: f64) -> f64fn sin_cos(self) -> (f64, f64)[src]
fn sin_cos(self) -> (f64, f64)fn exp_m1(self) -> f64[src]
fn exp_m1(self) -> f64fn ln_1p(self) -> f64[src]
fn ln_1p(self) -> f64fn sinh(self) -> f64[src]
fn sinh(self) -> f64fn cosh(self) -> f64[src]
fn cosh(self) -> f64fn tanh(self) -> f64[src]
fn tanh(self) -> f64fn asinh(self) -> f64[src]
fn asinh(self) -> f64fn acosh(self) -> f64[src]
fn acosh(self) -> f64fn atanh(self) -> f64[src]
fn atanh(self) -> f64fn pi() -> f64[src]
fn pi() -> f64Archimedes' constant.
fn two_pi() -> f64[src]
fn two_pi() -> f642.0 * pi.
fn frac_pi_2() -> f64[src]
fn frac_pi_2() -> f64pi / 2.0.
fn frac_pi_3() -> f64[src]
fn frac_pi_3() -> f64pi / 3.0.
fn frac_pi_4() -> f64[src]
fn frac_pi_4() -> f64pi / 4.0.
fn frac_pi_6() -> f64[src]
fn frac_pi_6() -> f64pi / 6.0.
fn frac_pi_8() -> f64[src]
fn frac_pi_8() -> f64pi / 8.0.
fn frac_1_pi() -> f64[src]
fn frac_1_pi() -> f641.0 / pi.
fn frac_2_pi() -> f64[src]
fn frac_2_pi() -> f642.0 / pi.
fn frac_2_sqrt_pi() -> f64[src]
fn frac_2_sqrt_pi() -> f642.0 / sqrt(pi).
fn e() -> f64[src]
fn e() -> f64Euler's number.
fn log2_e() -> f64[src]
fn log2_e() -> f64log2(e).
fn log10_e() -> f64[src]
fn log10_e() -> f64log10(e).
fn ln_2() -> f64[src]
fn ln_2() -> f64ln(2.0).
fn ln_10() -> f64[src]
fn ln_10() -> f64ln(10.0).
impl Real for f32[src]
impl Real for f32fn floor(self) -> f32[src]
fn floor(self) -> f32fn ceil(self) -> f32[src]
fn ceil(self) -> f32fn round(self) -> f32[src]
fn round(self) -> f32fn trunc(self) -> f32[src]
fn trunc(self) -> f32fn fract(self) -> f32[src]
fn fract(self) -> f32fn abs(self) -> f32[src]
fn abs(self) -> f32fn signum(self) -> f32[src]
fn signum(self) -> f32fn is_sign_positive(self) -> bool[src]
fn is_sign_positive(self) -> boolfn is_sign_negative(self) -> bool[src]
fn is_sign_negative(self) -> boolfn mul_add(self, a: f32, b: f32) -> f32[src]
fn mul_add(self, a: f32, b: f32) -> f32fn recip(self) -> f32[src]
fn recip(self) -> f32fn powi(self, n: i32) -> f32[src]
fn powi(self, n: i32) -> f32fn powf(self, n: f32) -> f32[src]
fn powf(self, n: f32) -> f32fn sqrt(self) -> f32[src]
fn sqrt(self) -> f32fn exp(self) -> f32[src]
fn exp(self) -> f32fn exp2(self) -> f32[src]
fn exp2(self) -> f32fn ln(self) -> f32[src]
fn ln(self) -> f32fn log(self, base: f32) -> f32[src]
fn log(self, base: f32) -> f32fn log2(self) -> f32[src]
fn log2(self) -> f32fn log10(self) -> f32[src]
fn log10(self) -> f32fn max(self, other: f32) -> f32[src]
fn max(self, other: f32) -> f32fn min(self, other: f32) -> f32[src]
fn min(self, other: f32) -> f32fn cbrt(self) -> f32[src]
fn cbrt(self) -> f32fn hypot(self, other: f32) -> f32[src]
fn hypot(self, other: f32) -> f32fn sin(self) -> f32[src]
fn sin(self) -> f32fn cos(self) -> f32[src]
fn cos(self) -> f32fn tan(self) -> f32[src]
fn tan(self) -> f32fn asin(self) -> f32[src]
fn asin(self) -> f32fn acos(self) -> f32[src]
fn acos(self) -> f32fn atan(self) -> f32[src]
fn atan(self) -> f32fn atan2(self, other: f32) -> f32[src]
fn atan2(self, other: f32) -> f32fn sin_cos(self) -> (f32, f32)[src]
fn sin_cos(self) -> (f32, f32)fn exp_m1(self) -> f32[src]
fn exp_m1(self) -> f32fn ln_1p(self) -> f32[src]
fn ln_1p(self) -> f32fn sinh(self) -> f32[src]
fn sinh(self) -> f32fn cosh(self) -> f32[src]
fn cosh(self) -> f32fn tanh(self) -> f32[src]
fn tanh(self) -> f32fn asinh(self) -> f32[src]
fn asinh(self) -> f32fn acosh(self) -> f32[src]
fn acosh(self) -> f32fn atanh(self) -> f32[src]
fn atanh(self) -> f32fn pi() -> f32[src]
fn pi() -> f32Archimedes' constant.
fn two_pi() -> f32[src]
fn two_pi() -> f322.0 * pi.
fn frac_pi_2() -> f32[src]
fn frac_pi_2() -> f32pi / 2.0.
fn frac_pi_3() -> f32[src]
fn frac_pi_3() -> f32pi / 3.0.
fn frac_pi_4() -> f32[src]
fn frac_pi_4() -> f32pi / 4.0.
fn frac_pi_6() -> f32[src]
fn frac_pi_6() -> f32pi / 6.0.
fn frac_pi_8() -> f32[src]
fn frac_pi_8() -> f32pi / 8.0.
fn frac_1_pi() -> f32[src]
fn frac_1_pi() -> f321.0 / pi.
fn frac_2_pi() -> f32[src]
fn frac_2_pi() -> f322.0 / pi.
fn frac_2_sqrt_pi() -> f32[src]
fn frac_2_sqrt_pi() -> f322.0 / sqrt(pi).
fn e() -> f32[src]
fn e() -> f32Euler's number.
fn log2_e() -> f32[src]
fn log2_e() -> f32log2(e).
fn log10_e() -> f32[src]
fn log10_e() -> f32log10(e).
fn ln_2() -> f32[src]
fn ln_2() -> f32ln(2.0).
fn ln_10() -> f32[src]
fn ln_10() -> f32ln(10.0).