[][src]Trait maths_traits::analysis::real::Complex

pub trait Complex: ComplexField + Trig + RealExponential + From<Self::Real> {
    fn i() -> Self;
fn mul_i(self) -> Self;
fn div_i(self) -> Self; }

A type representing the complex numbers

Required methods

fn i() -> Self

The imaginary unit representing √̅-̅1

fn mul_i(self) -> Self

Multiplies self by i

This is meant both as convenience and to be potentially faster than normal multiplication as this can be done using only data moves and negation

fn div_i(self) -> Self

Divides self by i. This is also equivalent to multiplication by -i

This is meant both as convenience and to be potentially faster than normal multiplication as this can be done using only data moves and negation

Loading content...

Implementors

Loading content...