Class: Complex

Complex()

new Complex()

An immutable complex number class with real and imaginary parts.
Source:

Methods

mod() → {number}

Alias of Complex::abs().
Source:
Returns:
The absolute length value of this complex number.
Type
number

modSq() → {number}

Alias of Complex::abs_squared().
Source:
Returns:
The squared absolute value of this complex number.
Type
number

mul(n) → {this}

Alias of Complex::mult().
Parameters:
Name Type Description
n Cobj | number The multiplicand.
Source:
Returns:
The product of the multiplication.
Type
this