The absolute value (or modulus) of z.
import mir.math.common: sqrt; assert(cabs(complex(1.0)) == 1.0); assert(cabs(complex(0.0, 1.0)) == 1.0); assert(cabs(complex(1.0L, -2.0L)) == sqrt(5.0L));
See Implementation