The OpenD Programming Language

mir.complex

Complex numbers

Modules

math
module mir.complex.math

Complex math

Members

Functions

arg
T arg(Complex!T z)
cabs
T cabs(Complex!T z)
complex
Complex!T complex(T re, T im)

Generic complex number type

conj
Complex!T conj(Complex!T z)
fromPolar
Complex!T fromPolar(T modulus, T argument)

Constructs a complex number given its absolute value and argument.

Structs

Complex
struct Complex(T)

Generic complex number type

Meta

Authors

Ilia Ki, Lars Tandle Kyllingstad, Don Clugston