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