Skip to main content

complex

Represents a complex number with real and imaginary components.

In Aleph, a complex variable is NOT a Number (as opposed to integer and real).

See also:

Constructors

complex() -> complex

Constructs a new complex instance.

complex(complex other) -> complex

Copies a complex instance.

Parameters

  • other: The complex instance to copy.

complex(const Number real) -> complex

Constructs a complex object with the specified real part. The imaginary part is set to zero by default.

Parameters

complex(const Number real, const Number imag) -> complex

Constructs a complex object with the specified real and imaginary parts.

Parameters