Struct easy_complex::EComplex [] [src]

pub struct EComplex {
    pub arg: f64,
    pub module: f64,
}

Complex number in exponential form (module * **_e_**^( i*argument ))

Fields

Methods

impl EComplex
[src]

[src]

Create new EComplex equal to 0

[src]

Create new EComplex equivalent to the input Complex

[src]

Return real part of the equivalent Complex

[src]

Return imaginary part of the equivalent Complex

[src]

Return the module

[src]

Return the argument in radians

[src]

Return the argument in degrees

[src]

Reduce the argument to a value between [0, 2*PI]

[src]

Return a vector with the square roots

[src]

Return a vector of n values with the nth roots

[src]

Return the number raised to the power p

[src]

Return the number raised to the power p

[src]

Return the conjugate EComplex

[src]

Return module

[src]

Return e^(self)

[src]

Return ln(self)

[src]

Return log(self) in the base b

[src]

Return 1/self

[src]

Return the cosine

[src]

Return the sine

[src]

Return the tangent

[src]

Return the hyperolic cosine

[src]

Return the hyperbolic sine

[src]

Return the hyperbolic tangent

[src]

Return the module and argument as a tuple (mod, arg)

[src]

Return as a tuple the real and imaginary part of the equivalent Complex (real, imag)

Trait Implementations

impl Debug for EComplex
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for EComplex
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for EComplex
[src]

impl ComplexNumber for EComplex
[src]

impl From<EComplex> for Complex
[src]

[src]

Performs the conversion.

impl From<Complex> for EComplex
[src]

[src]

Performs the conversion.

impl Display for EComplex
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq<Complex> for EComplex
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl PartialEq<EComplex> for Complex
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl PartialEq for EComplex
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Add<EComplex> for EComplex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'b EComplex> for &'a EComplex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add<Complex> for EComplex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'b Complex> for &'a EComplex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add<EComplex> for Complex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'b EComplex> for &'a Complex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Neg for EComplex
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl<'a> Neg for &'a EComplex
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

impl Sub<EComplex> for EComplex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b> Sub<&'b EComplex> for &'a EComplex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<Complex> for EComplex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b> Sub<&'b Complex> for &'a EComplex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<EComplex> for Complex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b> Sub<&'b EComplex> for &'a Complex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<EComplex> for EComplex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, 'b> Mul<&'b EComplex> for &'a EComplex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<Complex> for EComplex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, 'b> Mul<&'b Complex> for &'a EComplex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Mul<EComplex> for Complex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, 'b> Mul<&'b EComplex> for &'a Complex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Div<EComplex> for EComplex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<'a, 'b> Div<&'b EComplex> for &'a EComplex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<Complex> for EComplex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<'a, 'b> Div<&'b Complex> for &'a EComplex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<EComplex> for Complex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<'a, 'b> Div<&'b EComplex> for &'a Complex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

Auto Trait Implementations

impl Send for EComplex

impl Sync for EComplex