fromPolar

fnComplex!(CommonType!(T, U)) fromPolar(T, U)(const T modulus, const U argument) @safe pure nothrow @nogc

Constructs a complex number given its absolute value and argument.

Parameters

modulusThe modulus
argumentThe argument

Returns

The complex number with the given modulus and argument.