Struct Comp

Source
pub struct Comp<R: RealArithmetic> {
    pub r: R,
    pub i: R,
}

Fields§

§r: R§i: R

Implementations§

Source§

impl<R: RealArithmetic> Comp<R>

Source

pub fn new(r: R, i: R) -> Self

Source

pub fn nre(r: R) -> Self

Source

pub fn nim(i: R) -> Self

Source

pub fn conj(self) -> Self

Source§

impl<R: RealArithmetic> Comp<R>

Source

pub fn ccw(self) -> Self

Source

pub fn cw(self) -> Self

Source§

impl<R: Reals> Comp<R>

Source

pub fn ixp(self, iterations: usize) -> Self

Trait Implementations§

Source§

impl<R: RealArithmetic> Add for Comp<R>

Source§

type Output = Comp<R>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
Source§

impl<R: RealArithmetic> AddAssign for Comp<R>

Source§

fn add_assign(&mut self, rhs: Self)

Performs the += operation. Read more
Source§

impl<R: Reals> CircularTrig for Comp<R>

Source§

fn xsin(self, iterations: usize) -> Self

Source§

fn xcos(self, iterations: usize) -> Self

Source§

fn xtan(self, iterations: usize) -> Self

Source§

fn xcot(self, iterations: usize) -> Self

Source§

fn xcsc(self, iterations: usize) -> Self

Source§

fn xsec(self, iterations: usize) -> Self

Source§

impl<R: Reals> CircularTrigInv for Comp<R>

Source§

fn xacos(self, iterations: usize) -> Self

Source§

fn xasin(self, iterations: usize) -> Self

Source§

fn xacsc(self, iterations: usize) -> Self

Source§

fn xasec(self, iterations: usize) -> Self

Source§

fn xatan(self, iterations: usize) -> Self

Source§

fn xacot(self, iterations: usize) -> Self

Source§

impl<R: Clone + RealArithmetic> Clone for Comp<R>

Source§

fn clone(&self) -> Comp<R>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<R: Debug + RealArithmetic> Debug for Comp<R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R: RealArithmetic + Display> Display for Comp<R>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<R: RealArithmetic> Div for Comp<R>

Source§

type Output = Comp<R>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Self) -> Self

Performs the / operation. Read more
Source§

impl<R: RealArithmetic> DivAssign for Comp<R>

Source§

fn div_assign(&mut self, rhs: Self)

Performs the /= operation. Read more
Source§

impl<R: Reals> Exponential for Comp<R>

Source§

fn exp(self, iterations: usize) -> Self

Source§

fn lnn(self, iterations: usize) -> Self

Source§

impl<R: Reals> HyperbolicTrig for Comp<R>

Source§

fn xsinh(self, iterations: usize) -> Self

Source§

fn xcosh(self, iterations: usize) -> Self

Source§

fn xcsch(self, iterations: usize) -> Self

Source§

fn xsech(self, iterations: usize) -> Self

Source§

fn xtanh(self, iterations: usize) -> Self

Source§

fn xcoth(self, iterations: usize) -> Self

Source§

impl<R: Reals> HyperbolicTrigInv for Comp<R>

Source§

fn xacosh(self, iterations: usize) -> Self

Source§

fn xasinh(self, iterations: usize) -> Self

Source§

fn xacsch(self, iterations: usize) -> Self

Source§

fn xasech(self, iterations: usize) -> Self

Source§

fn xatanh(self, iterations: usize) -> Self

Source§

fn xacoth(self, iterations: usize) -> Self

Source§

impl<R: RealArithmetic> Identity for Comp<R>

Source§

const ZERO: Self

Source§

const ONE: Self

Source§

const SEED: Self

Source§

impl<R: RealArithmetic> Inverse for Comp<R>

Source§

fn inv(self) -> Self

Source§

impl<R: RealArithmetic + LaTeX> LaTeX for Comp<R>

Source§

fn latex(&self) -> String

Source§

impl<R: RealArithmetic> MagSquare for Comp<R>

Source§

fn mag2(self) -> Self

Source§

impl<R: Reals> Magnitude for Comp<R>

Source§

fn rrt(self, error: Self) -> Self

Source§

fn mag1(self, error: Self) -> Self

Source§

impl<R: RealArithmetic> Mul for Comp<R>

Source§

type Output = Comp<R>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self

Performs the * operation. Read more
Source§

impl<R: RealArithmetic> MulAssign for Comp<R>

Source§

fn mul_assign(&mut self, rhs: Self)

Performs the *= operation. Read more
Source§

impl<R: RealArithmetic> Neg for Comp<R>

Source§

type Output = Comp<R>

The resulting type after applying the - operator.
Source§

fn neg(self) -> Self

Performs the unary - operation. Read more
Source§

impl<R: RealArithmetic> PartialEq for Comp<R>

Source§

fn eq(&self, rhs: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<R: RealArithmetic> PartialOrd for Comp<R>

Source§

fn partial_cmp(&self, rhs: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<R: RealArithmetic + PowersOfE> PowersOfE for Comp<R>

Source§

fn etothe(power: isize) -> Self

Source§

impl<R: RealArithmetic + PowersOfTen> PowersOfTen for Comp<R>

Source§

fn order_of(power: isize) -> Self

Source§

impl<R: Reals> Reals for Comp<R>

Source§

const UNDEF: Self

Source§

const INFINITE: Self

Source§

impl<R: RealArithmetic> Rem for Comp<R>

Source§

type Output = Comp<R>

The resulting type after applying the % operator.
Source§

fn rem(self, rhs: Self) -> Self

Performs the % operation. Read more
Source§

impl<R: RealArithmetic> RemAssign for Comp<R>

Source§

fn rem_assign(&mut self, rhs: Self)

Performs the %= operation. Read more
Source§

impl<R: RealArithmetic> Sub for Comp<R>

Source§

type Output = Comp<R>

The resulting type after applying the - operator.
Source§

fn sub(self, rhs: Self) -> Self

Performs the - operation. Read more
Source§

impl<R: RealArithmetic> SubAssign for Comp<R>

Source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Source§

impl<R: RealArithmetic + UsefulReals> UsefulReals for Comp<R>

Source§

const TWO: Self

Source§

const E: Self

Source§

const TAU: Self

Source§

const PI: Self

Source§

const HALFPI: Self

Source§

const QTRPI: Self

Source§

impl<R: Copy + RealArithmetic> Copy for Comp<R>

Source§

impl<R: RealArithmetic> RealArithmetic for Comp<R>

Source§

impl<R: Reals> Trigonometry for Comp<R>

Auto Trait Implementations§

§

impl<R> Freeze for Comp<R>
where R: Freeze,

§

impl<R> RefUnwindSafe for Comp<R>
where R: RefUnwindSafe,

§

impl<R> Send for Comp<R>
where R: Send,

§

impl<R> Sync for Comp<R>
where R: Sync,

§

impl<R> Unpin for Comp<R>
where R: Unpin,

§

impl<R> UnwindSafe for Comp<R>
where R: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.