arg

@safe pure nothrow @nogc
T
arg
(
T
)

Return Value

Type: T

The argument (or phase) of z.

Examples

import std.math.constants : PI_2, PI_4;
assert(arg(complex(1.0)) == 0.0);
assert(arg(complex(0.0L, 1.0L)) == PI_2);
assert(arg(complex(1.0L, 1.0L)) == PI_4);

Meta