Skip to main content

Complex number

ABS

abs(Complex x) -> Real
STABLE

Magnitude of complex number x


abs(Vector of Complex v) -> Vector of Real
STABLE

Magnitudes of elements in vector of complex numbers v


COMPLEX

complex(Real re, Real im) -> Complex
STABLE

Constructor and accessors for complex numbers


DIV

div(Complex x, Real y) -> Complex
STABLE

Divide complex number x with real number y.

Same as x/y


div(Complex x, Complex y) -> Complex z
STABLE

Divide complex number x with complex number y.

Same as x*y


div(Complex x, Vector of Number w) -> Vector of Complex
STABLE

Divide complex number x with each element in vector w.

Same as x/w


div(Real x, Complex y) -> Complex
STABLE

Divide real number x with complex number y.

Same as x/y


div(Vector v, Complex w) -> Vector of Complex
STABLE

Divide elements in vectors of complex number v with w.

Same as v./w


EXP

exp(Complex x) -> Complex
STABLE

Natural exponent e^x


IM

im(Complex c) -> Real im
STABLE

The imaginary part of a complex number


im(Vector of Complex v) -> Vector of Real
STABLE

The imaginary parts of a vector of complex numbers v


MINUS

minus(Complex x, Real y) -> Complex
STABLE

No description.


minus(Complex x, Complex y) -> Complex z
STABLE

No description.


minus(Complex x, Vector w) -> Vector of Complex
STABLE

No description.


minus(Real x, Complex y) -> Complex
STABLE

No description.


minus(Vector v, Complex y) -> Vector of Complex
STABLE

No description.


PLUS

plus(Complex x, Complex y) -> Complex
STABLE

Addition and subtraction of complex numbers


plus(Complex x, Real y) -> Complex
STABLE

No description.


plus(Real x, Complex y) -> Complex
STABLE

No description.


plus(Vector v, Complex y) -> Vector of Complex
STABLE

No description.


plus(Complex x, Vector w) -> Vector of Complex
STABLE

No description.


RE

re(Complex c) -> Real re
STABLE

The real part of a complex number


re(Vector of Complex v) -> Vector of Real
STABLE

The real parts of a vector of complex numbers v


TIMES

times(Complex x, Complex y) -> Complex
STABLE

Multiplication and division of complex numbers


times(Real x, Complex y) -> Complex
STABLE

No description.


times(Complex x, Real y) -> Complex
STABLE

No description.


times(Vector of Number v, Complex y) -> Vector of Complex
STABLE

No description.


times(Complex x, Vector w) -> Vector of Complex
STABLE

No description.