Trait alga::general::RealField[][src]

pub trait RealField: ComplexField<RealField = Self> + RelativeEq<Epsilon = Self> + UlpsEq<Epsilon = Self> + Lattice + Signed + Bounded {
    fn is_sign_positive(self) -> bool;
fn is_sign_negative(self) -> bool;
fn max(self, other: Self) -> Self;
fn min(self, other: Self) -> Self;
fn atan2(self, other: 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; }

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 is_sign_positive(self) -> bool[src]

fn is_sign_negative(self) -> bool[src]

fn max(self, other: Self) -> Self[src]

fn min(self, other: Self) -> Self[src]

fn atan2(self, other: Self) -> Self[src]

fn pi() -> Self[src]

fn two_pi() -> Self[src]

fn frac_pi_2() -> Self[src]

fn frac_pi_3() -> Self[src]

fn frac_pi_4() -> Self[src]

fn frac_pi_6() -> Self[src]

fn frac_pi_8() -> Self[src]

fn frac_1_pi() -> Self[src]

fn frac_2_pi() -> Self[src]

fn frac_2_sqrt_pi() -> Self[src]

fn e() -> Self[src]

fn log2_e() -> Self[src]

fn log10_e() -> Self[src]

fn ln_2() -> Self[src]

fn ln_10() -> Self[src]

Loading content...

Implementations on Foreign Types

impl RealField for f32[src]

fn pi() -> Self[src]

Archimedes’ constant.

fn two_pi() -> Self[src]

2.0 * pi.

fn frac_pi_2() -> Self[src]

pi / 2.0.

fn frac_pi_3() -> Self[src]

pi / 3.0.

fn frac_pi_4() -> Self[src]

pi / 4.0.

fn frac_pi_6() -> Self[src]

pi / 6.0.

fn frac_pi_8() -> Self[src]

pi / 8.0.

fn frac_1_pi() -> Self[src]

1.0 / pi.

fn frac_2_pi() -> Self[src]

2.0 / pi.

fn frac_2_sqrt_pi() -> Self[src]

2.0 / sqrt(pi).

fn e() -> Self[src]

Euler’s number.

fn log2_e() -> Self[src]

log2(e).

fn log10_e() -> Self[src]

log10(e).

fn ln_2() -> Self[src]

ln(2.0).

fn ln_10() -> Self[src]

ln(10.0).

impl RealField for f64[src]

fn pi() -> Self[src]

Archimedes’ constant.

fn two_pi() -> Self[src]

2.0 * pi.

fn frac_pi_2() -> Self[src]

pi / 2.0.

fn frac_pi_3() -> Self[src]

pi / 3.0.

fn frac_pi_4() -> Self[src]

pi / 4.0.

fn frac_pi_6() -> Self[src]

pi / 6.0.

fn frac_pi_8() -> Self[src]

pi / 8.0.

fn frac_1_pi() -> Self[src]

1.0 / pi.

fn frac_2_pi() -> Self[src]

2.0 / pi.

fn frac_2_sqrt_pi() -> Self[src]

2.0 / sqrt(pi).

fn e() -> Self[src]

Euler’s number.

fn log2_e() -> Self[src]

log2(e).

fn log10_e() -> Self[src]

log10(e).

fn ln_2() -> Self[src]

ln(2.0).

fn ln_10() -> Self[src]

ln(10.0).

Loading content...

Implementors

Loading content...