Struct err_prop::F64Err
[−]
[src]
pub struct F64Err { /* fields omitted */ }
Methods
impl F64Err
[src]
fn new_errorfree(val: f64) -> F64Err
fn new(val: f64) -> F64Err
fn new_exact(val: f64, err: f64) -> F64Err
fn val(&self) -> f64
fn err(&self) -> f64
fn err_times_eps(&self) -> f64
Trait Implementations
impl Copy for F64Err
[src]
impl Clone for F64Err
[src]
fn clone(&self) -> F64Err
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for F64Err
[src]
fn eq(&self, __arg_0: &F64Err) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &F64Err) -> bool
This method tests for !=
.
impl Debug for F64Err
[src]
impl Mul for F64Err
[src]
type Output = F64Err
The resulting type after applying the *
operator
fn mul(self, rhs: Self) -> Self::Output
The method for the *
operator
impl MulAssign for F64Err
[src]
fn mul_assign(&mut self, rhs: Self)
The method for the *=
operator
impl Div for F64Err
[src]
type Output = F64Err
The resulting type after applying the /
operator
fn div(self, rhs: Self) -> Self::Output
The method for the /
operator
impl DivAssign for F64Err
[src]
fn div_assign(&mut self, rhs: Self)
The method for the /=
operator
impl Add for F64Err
[src]
type Output = Self
The resulting type after applying the +
operator
fn add(self, rhs: Self) -> Self::Output
The method for the +
operator
impl AddAssign for F64Err
[src]
fn add_assign(&mut self, rhs: Self)
The method for the +=
operator
impl Sub for F64Err
[src]
type Output = Self
The resulting type after applying the -
operator
fn sub(self, rhs: Self) -> Self::Output
The method for the -
operator
impl SubAssign for F64Err
[src]
fn sub_assign(&mut self, rhs: Self)
The method for the -=
operator
impl Rem for F64Err
[src]
type Output = Self
The resulting type after applying the %
operator
fn rem(self, rhs: Self) -> Self::Output
The method for the %
operator
impl RemAssign for F64Err
[src]
fn rem_assign(&mut self, rhs: Self)
The method for the %=
operator
impl PartialOrd for F64Err
[src]
fn partial_min(self, other: Self) -> Self
fn partial_max(self, other: Self) -> Self
impl PartialOrd for F64Err
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Zero for F64Err
[src]
fn zero() -> Self
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
Returns true
if self
is equal to the additive identity.
impl One for F64Err
[src]
impl ToPrimitive for F64Err
[src]
fn to_isize(&self) -> Option<isize>
Converts the value of self
to an isize
.
fn to_i8(&self) -> Option<i8>
Converts the value of self
to an i8
.
fn to_i16(&self) -> Option<i16>
Converts the value of self
to an i16
.
fn to_i32(&self) -> Option<i32>
Converts the value of self
to an i32
.
fn to_i64(&self) -> Option<i64>
Converts the value of self
to an i64
.
fn to_usize(&self) -> Option<usize>
Converts the value of self
to a usize
.
fn to_u8(&self) -> Option<u8>
Converts the value of self
to an u8
.
fn to_u16(&self) -> Option<u16>
Converts the value of self
to an u16
.
fn to_u32(&self) -> Option<u32>
Converts the value of self
to an u32
.
fn to_u64(&self) -> Option<u64>
Converts the value of self
to an u32
.
fn to_f32(&self) -> Option<f32>
Converts the value of self
to an f32
.
fn to_f64(&self) -> Option<f64>
Converts the value of self
to an f64
.
impl NumCast for F64Err
[src]
fn from<T>(t: T) -> Option<Self>
Creates a number from another value that can be converted into a primitive via the ToPrimitive
trait. Read more
impl Num for F64Err
[src]
type FromStrRadixErr = ParseFloatError
fn from_str_radix(src: &str, radix: u32) -> Result<Self, ParseFloatError>
Convert from a string and radix <= 36. Read more
impl BaseNum for F64Err
[src]
impl ApproxEq for F64Err
[src]
type Epsilon = Self
Used for specifying relative comparisons.
fn default_epsilon() -> Self::Epsilon
The default tolerance to use when testing values that are close together. Read more
fn default_max_relative() -> Self::Epsilon
The default relative tolerance for testing values that are far-apart. Read more
fn default_max_ulps() -> u32
The default ULPs to tolerate when testing values that are far-apart. Read more
fn relative_eq(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
A test for equality that uses a relative comparison if the values are far apart.
fn ulps_eq(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
A test for equality that uses units in the last place (ULP) if the values are far apart.
fn relative_ne(
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
&self,
other: &Self,
epsilon: Self::Epsilon,
max_relative: Self::Epsilon
) -> bool
The inverse of ApproxEq::relative_eq
.
fn ulps_ne(&self, other: &Self, epsilon: Self::Epsilon, max_ulps: u32) -> bool
The inverse of ApproxEq::ulps_eq
.
impl Neg for F64Err
[src]
type Output = Self
The resulting type after applying the -
operator
fn neg(self) -> Self::Output
The method for the unary -
operator
impl Float for F64Err
[src]
fn nan() -> Self
Returns the NaN
value. Read more
fn infinity() -> Self
Returns the infinite value. Read more
fn neg_infinity() -> Self
Returns the negative infinite value. Read more
fn neg_zero() -> Self
Returns -0.0
. Read more
fn min_value() -> Self
Returns the smallest finite value that this type can represent. Read more
fn min_positive_value() -> Self
Returns the smallest positive, normalized value that this type can represent. Read more
fn max_value() -> Self
Returns the largest finite value that this type can represent. Read more
fn is_nan(self) -> bool
Returns true
if this value is NaN
and false otherwise. Read more
fn is_infinite(self) -> bool
Returns true
if this value is positive infinity or negative infinity and false otherwise. Read more
fn is_finite(self) -> bool
Returns true
if this number is neither infinite nor NaN
. Read more
fn is_normal(self) -> bool
Returns true
if the number is neither zero, infinite, [subnormal][subnormal], or NaN
. Read more
fn classify(self) -> FpCategory
Returns the floating point category of the number. If only one property is going to be tested, it is generally faster to use the specific predicate instead. Read more
fn floor(self) -> Self
Returns the largest integer less than or equal to a number. Read more
fn ceil(self) -> Self
Returns the smallest integer greater than or equal to a number. Read more
fn round(self) -> Self
Returns the nearest integer to a number. Round half-way cases away from 0.0
. Read more
fn trunc(self) -> Self
Return the integer part of a number. Read more
fn fract(self) -> Self
Returns the fractional part of a number. Read more
fn abs(self) -> Self
Computes the absolute value of self
. Returns Float::nan()
if the number is Float::nan()
. Read more
fn signum(self) -> Self
Returns a number that represents the sign of self
. Read more
fn is_sign_positive(self) -> bool
Returns true
if self
is positive, including +0.0
and Float::infinity()
. Read more
fn is_sign_negative(self) -> bool
Returns true
if self
is negative, including -0.0
and Float::neg_infinity()
. Read more
fn mul_add(self, a: Self, b: Self) -> Self
Fused multiply-add. Computes (self * a) + b
with only one rounding error. This produces a more accurate result with better performance than a separate multiplication operation followed by an add. Read more
fn recip(self) -> Self
Take the reciprocal (inverse) of a number, 1/x
. Read more
fn powi(self, n: i32) -> Self
Raise a number to an integer power. Read more
fn powf(self, n: Self) -> Self
Raise a number to a floating point power. Read more
fn sqrt(self) -> Self
Take the square root of a number. Read more
fn exp(self) -> Self
Returns e^(self)
, (the exponential function). Read more
fn exp2(self) -> Self
Returns 2^(self)
. Read more
fn ln(self) -> Self
Returns the natural logarithm of the number. Read more
fn log(self, base: Self) -> Self
Returns the logarithm of the number with respect to an arbitrary base. Read more
fn log2(self) -> Self
Returns the base 2 logarithm of the number. Read more
fn log10(self) -> Self
Returns the base 10 logarithm of the number. Read more
fn max(self, other: Self) -> Self
Returns the maximum of the two numbers. Read more
fn min(self, other: Self) -> Self
Returns the minimum of the two numbers. Read more
fn abs_sub(self, other: Self) -> Self
The positive difference of two numbers. Read more
fn cbrt(self) -> Self
Take the cubic root of a number. Read more
fn hypot(self, other: Self) -> Self
Calculate the length of the hypotenuse of a right-angle triangle given legs of length x
and y
. Read more
fn sin(self) -> Self
Computes the sine of a number (in radians). Read more
fn cos(self) -> Self
Computes the cosine of a number (in radians). Read more
fn tan(self) -> Self
Computes the tangent of a number (in radians). Read more
fn asin(self) -> Self
Computes the arcsine of a number. Return value is in radians in the range [-pi/2, pi/2] or NaN if the number is outside the range [-1, 1]. Read more
fn acos(self) -> Self
Computes the arccosine of a number. Return value is in radians in the range [0, pi] or NaN if the number is outside the range [-1, 1]. Read more
fn atan(self) -> Self
Computes the arctangent of a number. Return value is in radians in the range [-pi/2, pi/2]; Read more
fn atan2(self, other: Self) -> Self
Computes the four quadrant arctangent of self
(y
) and other
(x
). Read more
fn sin_cos(self) -> (Self, Self)
Simultaneously computes the sine and cosine of the number, x
. Returns (sin(x), cos(x))
. Read more
fn exp_m1(self) -> Self
Returns e^(self) - 1
in a way that is accurate even if the number is close to zero. Read more
fn ln_1p(self) -> Self
Returns ln(1+n)
(natural logarithm) more accurately than if the operations were performed separately. Read more
fn sinh(self) -> Self
Hyperbolic sine function. Read more
fn cosh(self) -> Self
Hyperbolic cosine function. Read more
fn tanh(self) -> Self
Hyperbolic tangent function. Read more
fn asinh(self) -> Self
Inverse hyperbolic sine function. Read more
fn acosh(self) -> Self
Inverse hyperbolic cosine function. Read more
fn atanh(self) -> Self
Inverse hyperbolic tangent function. Read more
fn integer_decode(self) -> (u64, i16, i8)
Returns the mantissa, base 2 exponent, and sign as integers, respectively. The original number can be recovered by sign * mantissa * 2 ^ exponent
. The floating point encoding is documented in the [Reference][floating-point]. Read more
fn epsilon() -> Self
Returns epsilon, a small positive value. Read more
fn to_degrees(self) -> Self
Converts radians to degrees. Read more
fn to_radians(self) -> Self
Converts degrees to radians. Read more