Struct exmex::FloatOpsFactory [−][src]
pub struct FloatOpsFactory<T: Float> { /* fields omitted */ }
Expand description
Factory of default operators for floating point values.
representation | description |
---|---|
^ | power |
* | product |
/ | division |
+ | addition as binary or identity as unary operator |
- | subtraction as binary or inverting the sign as unary operator |
abs | absolute value |
signum | signum |
sin | sine |
cos | cosine |
tan | tangent |
asin | inverse sine |
acos | inverse cosine |
atan | inverse tangent |
sinh | hyperbolic sine |
cosh | hyperbolic cosine |
tanh | hyperbolic tangent |
floor | largest integer less than or equal to a number |
ceil | smallest integer greater than or equal to a number |
trunc | integer part of a number |
fract | fractional part of a number |
exp | exponential functionn |
sqrt | square root |
cbrt | cube root |
log | natural logarithm |
log2 | logarithm with basis 2 |
PI | constant π |
π | second representations of constant π |
E | Euler’s number |
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for FloatOpsFactory<T> where
T: RefUnwindSafe,
impl<T> Send for FloatOpsFactory<T> where
T: Send,
impl<T> Sync for FloatOpsFactory<T> where
T: Sync,
impl<T> Unpin for FloatOpsFactory<T> where
T: Unpin,
impl<T> UnwindSafe for FloatOpsFactory<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more