Struct easy_complex::Complex [] [src]

pub struct Complex {
    pub real: f64,
    pub imag: f64,
}

Complex number in the usual form (a + b*i)

Fields

Methods

impl Complex
[src]

[src]

[src]

[src]

Return real part

[src]

Return imaginary part

[src]

Return module of equivalent EComplex

[src]

Return argument of equivalent EComplex in radians

[src]

Return argument of equivalent EComplex in degrees

[src]

Return vector of the two square roots

[src]

Return vector of size n 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 Complex

[src]

Return the 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 hyperbolic cosine

[src]

Return the hyperbolic sine

[src]

Return the hyperbolic tangent

[src]

Return the real and imaginary parts as a tuple (real, imag)

[src]

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

Trait Implementations

impl Debug for Complex
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Complex
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Complex
[src]

impl ComplexNumber for Complex
[src]

impl From<EComplex> for Complex
[src]

[src]

Performs the conversion.

impl From<Complex> for EComplex
[src]

[src]

Performs the conversion.

impl Display for Complex
[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 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 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<Complex> for Complex
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'b Complex> for &'a Complex
[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 Complex
[src]

The resulting type after applying the - operator.

[src]

Performs the unary - operation.

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

The resulting type after applying the - operator.

[src]

Performs the unary - 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 Sub<Complex> for Complex
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b> Sub<&'b Complex> for &'a Complex
[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<Complex> for Complex
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a, 'b> Mul<&'b Complex> for &'a Complex
[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<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<Complex> for Complex
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<'a, 'b> Div<&'b Complex> for &'a Complex
[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 Complex

impl Sync for Complex