[−][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 f64
fn floor(self) -> f64
[src]
fn floor(self) -> f64
fn ceil(self) -> f64
[src]
fn ceil(self) -> f64
fn round(self) -> f64
[src]
fn round(self) -> f64
fn trunc(self) -> f64
[src]
fn trunc(self) -> f64
fn fract(self) -> f64
[src]
fn fract(self) -> f64
fn abs(self) -> f64
[src]
fn abs(self) -> f64
fn signum(self) -> f64
[src]
fn signum(self) -> f64
fn is_sign_positive(self) -> bool
[src]
fn is_sign_positive(self) -> bool
fn is_sign_negative(self) -> bool
[src]
fn is_sign_negative(self) -> bool
fn mul_add(self, a: f64, b: f64) -> f64
[src]
fn mul_add(self, a: f64, b: f64) -> f64
fn recip(self) -> f64
[src]
fn recip(self) -> f64
fn powi(self, n: i32) -> f64
[src]
fn powi(self, n: i32) -> f64
fn powf(self, n: f64) -> f64
[src]
fn powf(self, n: f64) -> f64
fn sqrt(self) -> f64
[src]
fn sqrt(self) -> f64
fn exp(self) -> f64
[src]
fn exp(self) -> f64
fn exp2(self) -> f64
[src]
fn exp2(self) -> f64
fn ln(self) -> f64
[src]
fn ln(self) -> f64
fn log(self, base: f64) -> f64
[src]
fn log(self, base: f64) -> f64
fn log2(self) -> f64
[src]
fn log2(self) -> f64
fn log10(self) -> f64
[src]
fn log10(self) -> f64
fn max(self, other: f64) -> f64
[src]
fn max(self, other: f64) -> f64
fn min(self, other: f64) -> f64
[src]
fn min(self, other: f64) -> f64
fn cbrt(self) -> f64
[src]
fn cbrt(self) -> f64
fn hypot(self, other: f64) -> f64
[src]
fn hypot(self, other: f64) -> f64
fn sin(self) -> f64
[src]
fn sin(self) -> f64
fn cos(self) -> f64
[src]
fn cos(self) -> f64
fn tan(self) -> f64
[src]
fn tan(self) -> f64
fn asin(self) -> f64
[src]
fn asin(self) -> f64
fn acos(self) -> f64
[src]
fn acos(self) -> f64
fn atan(self) -> f64
[src]
fn atan(self) -> f64
fn atan2(self, other: f64) -> f64
[src]
fn atan2(self, other: f64) -> f64
fn sin_cos(self) -> (f64, f64)
[src]
fn sin_cos(self) -> (f64, f64)
fn exp_m1(self) -> f64
[src]
fn exp_m1(self) -> f64
fn ln_1p(self) -> f64
[src]
fn ln_1p(self) -> f64
fn sinh(self) -> f64
[src]
fn sinh(self) -> f64
fn cosh(self) -> f64
[src]
fn cosh(self) -> f64
fn tanh(self) -> f64
[src]
fn tanh(self) -> f64
fn asinh(self) -> f64
[src]
fn asinh(self) -> f64
fn acosh(self) -> f64
[src]
fn acosh(self) -> f64
fn atanh(self) -> f64
[src]
fn atanh(self) -> f64
fn pi() -> f64
[src]
fn pi() -> f64
Archimedes' constant.
fn two_pi() -> f64
[src]
fn two_pi() -> f64
2.0 * pi.
fn frac_pi_2() -> f64
[src]
fn frac_pi_2() -> f64
pi / 2.0.
fn frac_pi_3() -> f64
[src]
fn frac_pi_3() -> f64
pi / 3.0.
fn frac_pi_4() -> f64
[src]
fn frac_pi_4() -> f64
pi / 4.0.
fn frac_pi_6() -> f64
[src]
fn frac_pi_6() -> f64
pi / 6.0.
fn frac_pi_8() -> f64
[src]
fn frac_pi_8() -> f64
pi / 8.0.
fn frac_1_pi() -> f64
[src]
fn frac_1_pi() -> f64
1.0 / pi.
fn frac_2_pi() -> f64
[src]
fn frac_2_pi() -> f64
2.0 / pi.
fn frac_2_sqrt_pi() -> f64
[src]
fn frac_2_sqrt_pi() -> f64
2.0 / sqrt(pi).
fn e() -> f64
[src]
fn e() -> f64
Euler's number.
fn log2_e() -> f64
[src]
fn log2_e() -> f64
log2(e).
fn log10_e() -> f64
[src]
fn log10_e() -> f64
log10(e).
fn ln_2() -> f64
[src]
fn ln_2() -> f64
ln(2.0).
fn ln_10() -> f64
[src]
fn ln_10() -> f64
ln(10.0).
impl Real for f32
[src]
impl Real for f32
fn floor(self) -> f32
[src]
fn floor(self) -> f32
fn ceil(self) -> f32
[src]
fn ceil(self) -> f32
fn round(self) -> f32
[src]
fn round(self) -> f32
fn trunc(self) -> f32
[src]
fn trunc(self) -> f32
fn fract(self) -> f32
[src]
fn fract(self) -> f32
fn abs(self) -> f32
[src]
fn abs(self) -> f32
fn signum(self) -> f32
[src]
fn signum(self) -> f32
fn is_sign_positive(self) -> bool
[src]
fn is_sign_positive(self) -> bool
fn is_sign_negative(self) -> bool
[src]
fn is_sign_negative(self) -> bool
fn mul_add(self, a: f32, b: f32) -> f32
[src]
fn mul_add(self, a: f32, b: f32) -> f32
fn recip(self) -> f32
[src]
fn recip(self) -> f32
fn powi(self, n: i32) -> f32
[src]
fn powi(self, n: i32) -> f32
fn powf(self, n: f32) -> f32
[src]
fn powf(self, n: f32) -> f32
fn sqrt(self) -> f32
[src]
fn sqrt(self) -> f32
fn exp(self) -> f32
[src]
fn exp(self) -> f32
fn exp2(self) -> f32
[src]
fn exp2(self) -> f32
fn ln(self) -> f32
[src]
fn ln(self) -> f32
fn log(self, base: f32) -> f32
[src]
fn log(self, base: f32) -> f32
fn log2(self) -> f32
[src]
fn log2(self) -> f32
fn log10(self) -> f32
[src]
fn log10(self) -> f32
fn max(self, other: f32) -> f32
[src]
fn max(self, other: f32) -> f32
fn min(self, other: f32) -> f32
[src]
fn min(self, other: f32) -> f32
fn cbrt(self) -> f32
[src]
fn cbrt(self) -> f32
fn hypot(self, other: f32) -> f32
[src]
fn hypot(self, other: f32) -> f32
fn sin(self) -> f32
[src]
fn sin(self) -> f32
fn cos(self) -> f32
[src]
fn cos(self) -> f32
fn tan(self) -> f32
[src]
fn tan(self) -> f32
fn asin(self) -> f32
[src]
fn asin(self) -> f32
fn acos(self) -> f32
[src]
fn acos(self) -> f32
fn atan(self) -> f32
[src]
fn atan(self) -> f32
fn atan2(self, other: f32) -> f32
[src]
fn atan2(self, other: f32) -> f32
fn sin_cos(self) -> (f32, f32)
[src]
fn sin_cos(self) -> (f32, f32)
fn exp_m1(self) -> f32
[src]
fn exp_m1(self) -> f32
fn ln_1p(self) -> f32
[src]
fn ln_1p(self) -> f32
fn sinh(self) -> f32
[src]
fn sinh(self) -> f32
fn cosh(self) -> f32
[src]
fn cosh(self) -> f32
fn tanh(self) -> f32
[src]
fn tanh(self) -> f32
fn asinh(self) -> f32
[src]
fn asinh(self) -> f32
fn acosh(self) -> f32
[src]
fn acosh(self) -> f32
fn atanh(self) -> f32
[src]
fn atanh(self) -> f32
fn pi() -> f32
[src]
fn pi() -> f32
Archimedes' constant.
fn two_pi() -> f32
[src]
fn two_pi() -> f32
2.0 * pi.
fn frac_pi_2() -> f32
[src]
fn frac_pi_2() -> f32
pi / 2.0.
fn frac_pi_3() -> f32
[src]
fn frac_pi_3() -> f32
pi / 3.0.
fn frac_pi_4() -> f32
[src]
fn frac_pi_4() -> f32
pi / 4.0.
fn frac_pi_6() -> f32
[src]
fn frac_pi_6() -> f32
pi / 6.0.
fn frac_pi_8() -> f32
[src]
fn frac_pi_8() -> f32
pi / 8.0.
fn frac_1_pi() -> f32
[src]
fn frac_1_pi() -> f32
1.0 / pi.
fn frac_2_pi() -> f32
[src]
fn frac_2_pi() -> f32
2.0 / pi.
fn frac_2_sqrt_pi() -> f32
[src]
fn frac_2_sqrt_pi() -> f32
2.0 / sqrt(pi).
fn e() -> f32
[src]
fn e() -> f32
Euler's number.
fn log2_e() -> f32
[src]
fn log2_e() -> f32
log2(e).
fn log10_e() -> f32
[src]
fn log10_e() -> f32
log10(e).
fn ln_2() -> f32
[src]
fn ln_2() -> f32
ln(2.0).
fn ln_10() -> f32
[src]
fn ln_10() -> f32
ln(10.0).