[−][src]Trait cauchy::Scalar
Associated Types
type Real: Scalar<Real = Self::Real, Complex = Self::Complex> + NumOps<Self::Real, Self::Real> + Float
type Complex: Scalar<Real = Self::Real, Complex = Self::Complex> + NumOps<Self::Real, Self::Complex> + NumOps<Self::Complex, Self::Complex>
Required methods
fn real<T: ToPrimitive>(re: T) -> Self::Real
Create a new real number
fn complex<T: ToPrimitive>(re: T, im: T) -> Self::Complex
Create a new complex number
fn from_real(re: Self::Real) -> Self
fn add_real(self, re: Self::Real) -> Self
fn sub_real(self, re: Self::Real) -> Self
fn mul_real(self, re: Self::Real) -> Self
fn div_real(self, re: Self::Real) -> Self
fn add_complex(self, im: Self::Complex) -> Self::Complex
fn sub_complex(self, im: Self::Complex) -> Self::Complex
fn mul_complex(self, im: Self::Complex) -> Self::Complex
fn div_complex(self, im: Self::Complex) -> Self::Complex
fn pow(&self, n: Self) -> Self
fn powi(&self, n: i32) -> Self
fn powf(&self, n: Self::Real) -> Self
fn powc(&self, n: Self::Complex) -> Self::Complex
fn re(&self) -> Self::Real
Real part
fn im(&self) -> Self::Real
Imaginary part
fn as_c(&self) -> Self::Complex
As a complex number
fn conj(&self) -> Self
Complex conjugate
fn abs(&self) -> Self::Real
Absolute value
fn square(&self) -> Self::Real
Sqaure of absolute value