Struct rug_maths::Complex [−][src]
Fields
val: Complex
Implementations
impl Complex
[src]
impl Complex
[src]
pub fn real(&self) -> Float
[src]
Returns the real part
pub fn imag(&self) -> Float
[src]
Returns the imaginary part
Trait Implementations
impl<'a> Add<&'a Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the +
operator.
fn add(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Add<&'a Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the +
operator.
fn add(self, rhs: &'a Complex) -> Self::Output
[src]
impl<B> Add<B> for Complex where
Complex: Add<B, Output = Complex>,
[src]
Complex: Add<B, Output = Complex>,
type Output = Complex
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Add<B> for &'a Complex where
Complex: Add<B, Output = Complex>,
[src]
Complex: Add<B, Output = Complex>,
type Output = Complex
The resulting type after applying the +
operator.
fn add(self, rhs: B) -> Self::Output
[src]
impl Add<Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the +
operator.
fn add(self, rhs: Complex) -> Self::Output
[src]
impl<'a> Add<Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the +
operator.
fn add(self, rhs: Complex) -> Self::Output
[src]
impl<'a> AddAssign<&'a Complex> for Complex
[src]
fn add_assign(&mut self, rhs: &Self)
[src]
impl<B> AddAssign<B> for Complex where
Complex: AddAssign<B>,
[src]
Complex: AddAssign<B>,
fn add_assign(&mut self, rhs: B)
[src]
impl AddAssign<Complex> for Complex
[src]
fn add_assign(&mut self, rhs: Self)
[src]
impl AddAssociative for Complex
[src]
impl AddCommutative for Complex
[src]
impl CheckedAdd for Complex
[src]
fn checked_add(&self, v: &Self) -> Option<Self>
[src]
impl CheckedDiv for Complex
[src]
fn checked_div(&self, v: &Self) -> Option<Self>
[src]
impl CheckedMul for Complex
[src]
fn checked_mul(&self, v: &Self) -> Option<Self>
[src]
impl CheckedNeg for Complex
[src]
fn checked_neg(&self) -> Option<Self>
[src]
impl CheckedSub for Complex
[src]
fn checked_sub(&self, v: &Self) -> Option<Self>
[src]
impl Clone for Complex
[src]
impl ComplexSubset for Complex
[src]
type Real = Float
type Natural = Integer
type Integer = Integer
fn as_real(self) -> Self::Real
[src]
fn as_natural(self) -> Self::Natural
[src]
fn as_integer(self) -> Self::Integer
[src]
fn floor(self) -> Self
[src]
fn ceil(self) -> Self
[src]
fn round(self) -> Self
[src]
fn trunc(self) -> Self
[src]
fn fract(self) -> Self
[src]
fn im(self) -> Self
[src]
fn re(self) -> Self
[src]
fn conj(self) -> Self
[src]
pub fn modulus_sqrd(self) -> Self
[src]
pub fn modulus(self) -> Self::Real
[src]
impl Debug for Complex
[src]
impl Display for Complex
[src]
impl Distributive<Complex> for Complex
[src]
impl<'a> Div<&'a Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the /
operator.
fn div(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Div<&'a Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the /
operator.
fn div(self, rhs: &'a Complex) -> Self::Output
[src]
impl<B> Div<B> for Complex where
Complex: Div<B, Output = Complex>,
[src]
Complex: Div<B, Output = Complex>,
type Output = Complex
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Div<B> for &'a Complex where
Complex: Div<B, Output = Complex>,
[src]
Complex: Div<B, Output = Complex>,
type Output = Complex
The resulting type after applying the /
operator.
fn div(self, rhs: B) -> Self::Output
[src]
impl Div<Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the /
operator.
fn div(self, rhs: Complex) -> Self::Output
[src]
impl<'a> Div<Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the /
operator.
fn div(self, rhs: Complex) -> Self::Output
[src]
impl<'a> DivAssign<&'a Complex> for Complex
[src]
fn div_assign(&mut self, rhs: &Self)
[src]
impl<B> DivAssign<B> for Complex where
Complex: DivAssign<B>,
[src]
Complex: DivAssign<B>,
fn div_assign(&mut self, rhs: B)
[src]
impl DivAssign<Complex> for Complex
[src]
fn div_assign(&mut self, rhs: Self)
[src]
impl Divisibility for Complex
[src]
fn divides(self, rhs: Self) -> bool
[src]
fn divide(self, rhs: Self) -> Option<Self>
[src]
fn unit(&self) -> bool
[src]
fn inverse(self) -> Option<Self>
[src]
impl Exponential for Complex
[src]
impl<T> From<T> for Complex where
Complex: From<T>,
[src]
Complex: From<T>,
impl Inv for Complex
[src]
impl<'a> Mul<&'a Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the *
operator.
fn mul(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Mul<&'a Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the *
operator.
fn mul(self, rhs: &'a Complex) -> Self::Output
[src]
impl<B> Mul<B> for Complex where
Complex: Mul<B, Output = Complex>,
[src]
Complex: Mul<B, Output = Complex>,
type Output = Complex
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Mul<B> for &'a Complex where
Complex: Mul<B, Output = Complex>,
[src]
Complex: Mul<B, Output = Complex>,
type Output = Complex
The resulting type after applying the *
operator.
fn mul(self, rhs: B) -> Self::Output
[src]
impl Mul<Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the *
operator.
fn mul(self, rhs: Complex) -> Self::Output
[src]
impl<'a> Mul<Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the *
operator.
fn mul(self, rhs: Complex) -> Self::Output
[src]
impl<'a> MulAssign<&'a Complex> for Complex
[src]
fn mul_assign(&mut self, rhs: &Self)
[src]
impl<B> MulAssign<B> for Complex where
Complex: MulAssign<B>,
[src]
Complex: MulAssign<B>,
fn mul_assign(&mut self, rhs: B)
[src]
impl MulAssign<Complex> for Complex
[src]
fn mul_assign(&mut self, rhs: Self)
[src]
impl MulAssociative for Complex
[src]
impl MulCommutative for Complex
[src]
impl Neg for Complex
[src]
type Output = Complex
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
[src]
impl NoZeroDivisors for Complex
[src]
impl One for Complex
[src]
impl PartialEq<Complex> for Complex
[src]
impl RealExponential for Complex
[src]
pub fn try_pow(self, power: Self) -> Option<Self>
[src]
pub fn try_root(self, index: Self) -> Option<Self>
[src]
pub fn try_log(self, base: Self) -> Option<Self>
[src]
pub fn ln(self) -> Self
[src]
pub fn log(self, base: Self) -> Self
[src]
pub fn pow(self, p: Self) -> Self
[src]
pub fn root(self, r: Self) -> Self
[src]
pub fn exp2(self) -> Self
[src]
pub fn exp10(self) -> Self
[src]
pub fn log2(self) -> Self
[src]
pub fn log10(self) -> Self
[src]
pub fn sqrt(self) -> Self
[src]
pub fn cbrt(self) -> Self
[src]
pub fn ln_1p(self) -> Self
[src]
pub fn exp_m1(self) -> Self
[src]
pub fn e() -> Self
[src]
pub fn ln_2() -> Self
[src]
pub fn ln_10() -> Self
[src]
pub fn log2_e() -> Self
[src]
pub fn log10_e() -> Self
[src]
pub fn log2_10() -> Self
[src]
pub fn log10_2() -> Self
[src]
pub fn sqrt_2() -> Self
[src]
pub fn frac_1_sqrt_2() -> Self
[src]
impl StructuralPartialEq for Complex
[src]
impl<'a> Sub<&'a Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the -
operator.
fn sub(self, rhs: &Self) -> Self::Output
[src]
impl<'a> Sub<&'a Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the -
operator.
fn sub(self, rhs: &'a Complex) -> Self::Output
[src]
impl<B> Sub<B> for Complex where
Complex: Sub<B, Output = Complex>,
[src]
Complex: Sub<B, Output = Complex>,
type Output = Complex
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl<'a, B> Sub<B> for &'a Complex where
Complex: Sub<B, Output = Complex>,
[src]
Complex: Sub<B, Output = Complex>,
type Output = Complex
The resulting type after applying the -
operator.
fn sub(self, rhs: B) -> Self::Output
[src]
impl Sub<Complex> for Complex
[src]
type Output = Complex
The resulting type after applying the -
operator.
fn sub(self, rhs: Complex) -> Self::Output
[src]
impl<'a> Sub<Complex> for &'a Complex
[src]
type Output = Complex
The resulting type after applying the -
operator.
fn sub(self, rhs: Complex) -> Self::Output
[src]
impl<'a> SubAssign<&'a Complex> for Complex
[src]
fn sub_assign(&mut self, rhs: &Self)
[src]
impl<B> SubAssign<B> for Complex where
Complex: SubAssign<B>,
[src]
Complex: SubAssign<B>,
fn sub_assign(&mut self, rhs: B)
[src]
impl SubAssign<Complex> for Complex
[src]
fn sub_assign(&mut self, rhs: Self)
[src]
impl Trig for Complex
[src]
fn sin(self) -> Self
[src]
fn cos(self) -> Self
[src]
fn tan(self) -> Self
[src]
fn sinh(self) -> Self
[src]
fn cosh(self) -> Self
[src]
fn tanh(self) -> Self
[src]
fn asin(self) -> Self
[src]
fn acos(self) -> Self
[src]
fn atan(self) -> Self
[src]
fn asinh(self) -> Self
[src]
fn acosh(self) -> Self
[src]
fn atanh(self) -> Self
[src]
fn try_asin(self) -> Option<Self>
[src]
fn try_acos(self) -> Option<Self>
[src]
fn try_asinh(self) -> Option<Self>
[src]
fn try_acosh(self) -> Option<Self>
[src]
fn try_atanh(self) -> Option<Self>
[src]
fn atan2(_y: Self, _x: Self) -> Self
[src]
fn pi() -> Self
[src]
pub fn sin_cos(self) -> (Self, Self)
[src]
pub fn frac_2_pi() -> Self
[src]
pub fn frac_pi_2() -> Self
[src]
pub fn frac_pi_3() -> Self
[src]
pub fn frac_pi_4() -> Self
[src]
pub fn frac_pi_6() -> Self
[src]
pub fn frac_pi_8() -> Self
[src]
pub fn pythag_const() -> Self
[src]
pub fn pythag_const_inv() -> Self
[src]
pub fn to_degrees(self) -> Self
[src]
pub fn to_radians(self) -> Self
[src]
impl Zero for Complex
[src]
Auto Trait Implementations
impl RefUnwindSafe for Complex
impl Send for Complex
impl Sync for Complex
impl Unpin for Complex
impl UnwindSafe for Complex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<G> MulN for G where
G: AddSemigroup + Zero,
[src]
G: AddSemigroup + Zero,
impl<G> MulZ for G where
G: AddMonoid + Negatable,
[src]
G: AddMonoid + Negatable,
pub fn mul_z<N>(self, n: N) -> Self where
N: IntegerSubset,
[src]
N: IntegerSubset,
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<G> PowN for G where
G: MulSemigroup + One,
[src]
G: MulSemigroup + One,
impl<G> PowZ for G where
G: MulMonoid + Invertable,
[src]
G: MulMonoid + Invertable,
pub fn pow_z<Z>(self, n: Z) -> Self where
Z: IntegerSubset,
[src]
Z: IntegerSubset,
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,