Struct mexprp::num::ComplexFloat
[−]
[src]
pub struct ComplexFloat {
pub r: f64,
pub i: f64,
}A complex number made of a real f64 and an imaginary f64.
Fields
r: f64
The real part
i: f64
The imaginary part
Methods
impl ComplexFloat[src]
Trait Implementations
impl Debug for ComplexFloat[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for ComplexFloat[src]
fn clone(&self) -> ComplexFloat[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Num for ComplexFloat[src]
fn from_f64(t: f64, ctx: &Context<Self>) -> Calculation<Self>[src]
Attempts to create an instance of the number from an f64
fn from_f64_complex(
(r, i): (f64, f64),
ctx: &Context<Self>
) -> Calculation<Self>[src]
(r, i): (f64, f64),
ctx: &Context<Self>
) -> Calculation<Self>
Attempts to create an instance of the number from complex parts. It's possible the imaginary part will be ignored for Numbers that don't support it. Read more
fn typename() -> String[src]
Returns the name of this Num type (used for errors)
fn tryord(
&self,
other: &Self,
ctx: &Context<Self>
) -> Result<Ordering, MathError>[src]
&self,
other: &Self,
ctx: &Context<Self>
) -> Result<Ordering, MathError>
fn add(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn sub(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn mul(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn div(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn pow(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn sqrt(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn nrt(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn abs(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn sin(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn cos(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn tan(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn asin(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn acos(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn atan(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn atan2(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn floor(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn ceil(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn round(&self, ctx: &Context<Self>) -> Calculation<Self>[src]
fn log(&self, other: &Self, ctx: &Context<Self>) -> Calculation<Self>[src]
impl From<(f64, f64)> for ComplexFloat[src]
impl From<f64> for ComplexFloat[src]
impl PartialOrd for ComplexFloat[src]
fn partial_cmp(&self, other: &ComplexFloat) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq for ComplexFloat[src]
fn eq(&self, other: &ComplexFloat) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.