complex_2_magnitude

complex_2_magnitude(z)[source]

Return the magnitude of the complex argument.

Parameters:

z (number or array_like) – A complex number or sequence of complex numbers.

Returns:

mag – The absolute value of the input.

Return type:

ndarray or scalar