zabs
Calculates the absolute value (or modulus) of a complex number.
| z | abs(z) | Notes |
|---|---|---|
| (0, 0) | 0 | |
| (NaN, any) or (any, NaN) | NaN | |
| (Inf, any) or (any, Inf) | Inf | |
| (a, b) | normal casehypot(a, b) | Uses algorithm to prevent overflow/underflow |
Parameters
z | A complex number of type Complex!T |
Returns
The absolute value (modulus) of