Documentation
Return the magnitude of the complex argument.
z (number or array_like) – A complex number or sequence of complex numbers.
mag – The absolute value of the input.
ndarray or scalar