[][src]Struct easy_complex::Complex

pub struct Complex<T> {
    pub real: T,
    pub imag: T,
}

Complex number represented in rectangular coordinates

Fields

real: Timag: T

Methods

impl Complex<f32>[src]

pub fn new(real: f32, imag: f32) -> Complex<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 Complex<f64>[src]

pub fn new(real: f64, imag: f64) -> Complex<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 Complex<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: Complex<f32>) -> Self[src]

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

impl Complex<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: Complex<f64>) -> Self[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

impl From<(f64, f64)> for Complex<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 Complex<T>[src]

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

Performs copy-assignment from source. Read more

impl Display for Complex<f32>[src]

impl Display for Complex<f64>[src]

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

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

type Output = Complex<f32>

The resulting type after applying the + operator.

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

type Output = Complex<f64>

The resulting type after applying the + operator.

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

type Output = Complex<f32>

The resulting type after applying the - operator.

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

type Output = Complex<f64>

The resulting type after applying the - operator.

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

type Output = Complex<f32>

The resulting type after applying the * operator.

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

type Output = Complex<f64>

The resulting type after applying the * operator.

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

type Output = Complex<f32>

The resulting type after applying the / operator.

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

type Output = Complex<f64>

The resulting type after applying the / operator.

impl Neg for Complex<f32>[src]

type Output = Complex<f32>

The resulting type after applying the - operator.

impl Neg for Complex<f64>[src]

type Output = Complex<f64>

The resulting type after applying the - operator.

Auto Trait Implementations

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

impl<T> Sync for Complex<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.