Complex

A complex number parametrised by a type T, which must be either float, double or real.

Constructors

this
this(Complex!R z)
this(Rx x, Ry y)
this(R r)

Construct a complex number with the specified real and imaginary parts. In the case where a single argument is passed that is not complex, the imaginary part of the result will be zero.

Members

Functions

toString
string toString()
void toString(Writer w, FormatSpec!Char formatSpec)

Converts the complex number to a string representation.

Variables

im
T im;

The imaginary part of the number.

re
T re;

The real part of the number.

Meta