[][src]Struct easy_complex::EComplex

pub struct EComplex<T> {
    pub module: T,
    pub arg: T,
}

EComplex number represented in exponential form

Fields

module: Targ: T

Methods

impl EComplex<f32>[src]

pub fn new(module: f32, arg: f32) -> EComplex<f32>[src]

pub fn real(&self) -> f32[src]

pub fn imag(&self) -> f32[src]

pub fn module(&self) -> f32[src]

pub fn arg(&self) -> Angle<f32>[src]

pub fn conjugate(&self) -> Self[src]

impl EComplex<f64>[src]

pub fn new(module: f64, arg: f64) -> EComplex<f64>[src]

pub fn real(&self) -> f64[src]

pub fn imag(&self) -> f64[src]

pub fn module(&self) -> f64[src]

pub fn arg(&self) -> Angle<f64>[src]

pub fn conjugate(&self) -> Self[src]

impl EComplex<f32>[src]

pub fn ln(&self) -> Self[src]

pub fn log(&self, base: f32) -> Self[src]

pub fn log2(&self) -> Self[src]

pub fn log10(&self) -> Self[src]

pub fn powf(&self, power: f32) -> Self[src]

pub fn exp(&self) -> Self[src]

pub fn sqrt(&self) -> Vec<Self>[src]

pub fn root(&self, r: usize) -> Vec<Self>[src]

pub fn powc(&self, power: EComplex<f32>) -> Self[src]

pub fn expf(&self, base: f32) -> Self[src]

impl EComplex<f64>[src]

pub fn ln(&self) -> Self[src]

pub fn log(&self, base: f64) -> Self[src]

pub fn log2(&self) -> Self[src]

pub fn log10(&self) -> Self[src]

pub fn powf(&self, power: f32) -> Self[src]

pub fn exp(&self) -> Self[src]

pub fn sqrt(&self) -> Vec<Self>[src]

pub fn root(&self, r: usize) -> Vec<Self>[src]

pub fn powc(&self, power: EComplex<f64>) -> Self[src]

pub fn expf(&self, base: f64) -> Self[src]

impl EComplex<f32>[src]

pub fn cosh(&self) -> Self[src]

pub fn sinh(&self) -> Self[src]

pub fn tanh(&self) -> Self[src]

pub fn cos(&self) -> Self[src]

pub fn sin(&self) -> Self[src]

pub fn tan(&self) -> Self[src]

impl EComplex<f64>[src]

pub fn cosh(&self) -> Self[src]

pub fn sinh(&self) -> Self[src]

pub fn tanh(&self) -> Self[src]

pub fn cos(&self) -> Self[src]

pub fn sin(&self) -> Self[src]

pub fn tan(&self) -> Self[src]

Trait Implementations

impl<T: Eq> Eq for EComplex<T>[src]

impl<T: Copy> Copy for EComplex<T>[src]

impl<T: PartialEq> PartialEq<EComplex<T>> for EComplex<T>[src]

impl From<i8> for EComplex<f32>[src]

impl From<(i8, i8)> for EComplex<f32>[src]

impl From<u8> for EComplex<f32>[src]

impl From<(u8, u8)> for EComplex<f32>[src]

impl From<i16> for EComplex<f32>[src]

impl From<(i16, i16)> for EComplex<f32>[src]

impl From<u16> for EComplex<f32>[src]

impl From<(u16, u16)> for EComplex<f32>[src]

impl From<f32> for EComplex<f32>[src]

impl From<(f32, f32)> for EComplex<f32>[src]

impl From<i8> for EComplex<f64>[src]

impl From<(i8, i8)> for EComplex<f64>[src]

impl From<u8> for EComplex<f64>[src]

impl From<(u8, u8)> for EComplex<f64>[src]

impl From<i16> for EComplex<f64>[src]

impl From<(i16, i16)> for EComplex<f64>[src]

impl From<u16> for EComplex<f64>[src]

impl From<(u16, u16)> for EComplex<f64>[src]

impl From<f32> for EComplex<f64>[src]

impl From<(f32, f32)> for EComplex<f64>[src]

impl From<i32> for EComplex<f64>[src]

impl From<(i32, i32)> for EComplex<f64>[src]

impl From<u32> for EComplex<f64>[src]

impl From<(u32, u32)> for EComplex<f64>[src]

impl From<f64> for EComplex<f64>[src]

impl From<(f64, f64)> for EComplex<f64>[src]

impl From<Complex<f32>> for EComplex<f32>[src]

impl<'a> From<&'a Complex<f32>> for EComplex<f32>[src]

impl From<Complex<f32>> for EComplex<f64>[src]

impl<'a> From<&'a Complex<f32>> for EComplex<f64>[src]

impl From<Complex<f64>> for EComplex<f64>[src]

impl<'a> From<&'a Complex<f64>> for EComplex<f64>[src]

impl From<EComplex<f32>> for Complex<f32>[src]

impl<'a> From<&'a EComplex<f32>> for Complex<f32>[src]

impl From<EComplex<f32>> for Complex<f64>[src]

impl<'a> From<&'a EComplex<f32>> for Complex<f64>[src]

impl From<EComplex<f64>> for Complex<f64>[src]

impl<'a> From<&'a EComplex<f64>> for Complex<f64>[src]

impl<T: Clone> Clone for EComplex<T>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for EComplex<f32>[src]

impl Display for EComplex<f64>[src]

impl<T: Debug> Debug for EComplex<T>[src]

impl<A> Add<A> for EComplex<f32> where
    A: Into<Complex<f32>>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<A> Add<A> for EComplex<f64> where
    A: Into<Complex<f64>>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<A> Sub<A> for EComplex<f32> where
    A: Into<Complex<f32>>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<A> Sub<A> for EComplex<f64> where
    A: Into<Complex<f64>>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<A> Mul<A> for EComplex<f32> where
    A: Into<EComplex<f32>>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<A> Mul<A> for EComplex<f64> where
    A: Into<EComplex<f64>>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<A> Div<A> for EComplex<f32> where
    A: Into<EComplex<f32>>, 
[src]

type Output = Self

The resulting type after applying the / operator.

impl<A> Div<A> for EComplex<f64> where
    A: Into<EComplex<f64>>, 
[src]

type Output = Self

The resulting type after applying the / operator.

impl Neg for EComplex<f32>[src]

type Output = EComplex<f32>

The resulting type after applying the - operator.

impl Neg for EComplex<f64>[src]

type Output = EComplex<f64>

The resulting type after applying the - operator.

Auto Trait Implementations

impl<T> Send for EComplex<T> where
    T: Send

impl<T> Sync for EComplex<T> where
    T: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.