Calculates the absolute value (or modulus) of a complex number.
normal case
A complex number of type Complex!T
The absolute value (modulus) of z
static import core.math; assert(abs(complex(1.0)) == 1.0); assert(abs(complex(0.0, 1.0)) == 1.0); assert(abs(complex(1.0L, -2.0L)) == core.math.sqrt(5.0L));
See Implementation
Calculates the absolute value (or modulus) of a complex number.
normal case