Struct easy_complex::NumComplex
[−]
[src]
pub struct NumComplex { pub real: f64, pub imag: f64, }
Fields
real: f64
imag: f64
Methods
impl NumComplex
[src]
fn new() -> NumComplex
[src]
fn new_from(f: ExpComplex) -> NumComplex
[src]
fn module(&self) -> f64
[src]
fn arg(&self) -> f64
[src]
fn sqrt(&self) -> Result<Vec<ExpComplex>, &'static str>
[src]
fn root(&self, r: usize) -> Result<Vec<ExpComplex>, &'static str>
[src]
fn pow(&self, p: usize) -> NumComplex
[src]
fn conjugate(&self) -> NumComplex
[src]
fn abs(&self) -> f64
[src]
fn ln(&self) -> NumComplex
[src]
fn inverse(&self) -> NumComplex
[src]
fn cos(&self) -> NumComplex
[src]
fn sin(&self) -> NumComplex
[src]
fn cosh(&self) -> NumComplex
[src]
fn sinh(&self) -> NumComplex
[src]
Trait Implementations
impl Clone for NumComplex
[src]
fn clone(&self) -> NumComplex
[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 Copy for NumComplex
[src]
impl Complex for NumComplex
[src]
impl From<ExpComplex> for NumComplex
[src]
Direct cast between the two types of complex
fn from(num: ExpComplex) -> Self
[src]
Performs the conversion.
impl Display for NumComplex
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Add<NumComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the +
operator.
fn add(self, other: NumComplex) -> NumComplex
[src]
Performs the +
operation.
impl<'a, 'b> Add<&'b NumComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the +
operator.
fn add(self, other: &'b NumComplex) -> NumComplex
[src]
Performs the +
operation.
impl Add<ExpComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the +
operator.
fn add(self, other: ExpComplex) -> NumComplex
[src]
Performs the +
operation.
impl<'a, 'b> Add<&'b ExpComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the +
operator.
fn add(self, other: &'b ExpComplex) -> NumComplex
[src]
Performs the +
operation.
impl Neg for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the -
operator.
fn neg(self) -> NumComplex
[src]
Performs the unary -
operation.
impl<'a> Neg for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the -
operator.
fn neg(self) -> NumComplex
[src]
Performs the unary -
operation.
impl Sub<ExpComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the -
operator.
fn sub(self, other: ExpComplex) -> NumComplex
[src]
Performs the -
operation.
impl<'a, 'b> Sub<&'b ExpComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the -
operator.
fn sub(self, other: &'b ExpComplex) -> NumComplex
[src]
Performs the -
operation.
impl Sub<NumComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the -
operator.
fn sub(self, other: NumComplex) -> NumComplex
[src]
Performs the -
operation.
impl<'a, 'b> Sub<&'b NumComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the -
operator.
fn sub(self, other: &'b NumComplex) -> NumComplex
[src]
Performs the -
operation.
impl Mul<NumComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the *
operator.
fn mul(self, other: NumComplex) -> NumComplex
[src]
Performs the *
operation.
impl<'a, 'b> Mul<&'b NumComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the *
operator.
fn mul(self, other: &'b NumComplex) -> NumComplex
[src]
Performs the *
operation.
impl Mul<ExpComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the *
operator.
fn mul(self, other: ExpComplex) -> NumComplex
[src]
Performs the *
operation.
impl<'a, 'b> Mul<&'b ExpComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the *
operator.
fn mul(self, other: &'b ExpComplex) -> NumComplex
[src]
Performs the *
operation.
impl Div<NumComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the /
operator.
fn div(self, other: NumComplex) -> NumComplex
[src]
Performs the /
operation.
impl<'a, 'b> Div<&'b NumComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the /
operator.
fn div(self, other: &'b NumComplex) -> NumComplex
[src]
Performs the /
operation.
impl Div<ExpComplex> for NumComplex
[src]
type Output = NumComplex
The resulting type after applying the /
operator.
fn div(self, other: ExpComplex) -> NumComplex
[src]
Performs the /
operation.
impl<'a, 'b> Div<&'b ExpComplex> for &'a NumComplex
[src]
type Output = NumComplex
The resulting type after applying the /
operator.
fn div(self, other: &'b ExpComplex) -> NumComplex
[src]
Performs the /
operation.