Gambas Documentation - /comp/gb.complex/complex

# Complex (gb.complex)

This class implements complex numbers.

Moreover, that class supports the following arithmetic operators and functions: `+`, `-`, `*`, `/`, `^`, `=`, `<>`, `Abs`.

The absolute value of a complex number is its modulus.

This class is
Create a new complex number from its real part and imaginary part.
creatable
.
This class can be used as a
Create a new complex number from its real part and imaginary part.
static function
.

Static methods
Create a new complex number from its modulus and argument. Polar

Properties | Methods
--- | ---

Return or set the imaginary part of the number.
Imag
Return of set the real part of the number.
Real

Return the square of the complex number absolute value.
Abs2
Return the complex number argument.
Arg
Return the conjugate of the number as a new complex number.
Conj
Return a copy of the complex number.
Copy
Return the inverse of the complex number.
Inv
Convert a complex number to a string.
ToString