skrf.mathFunctions.complex_2_db10¶
- skrf.mathFunctions.complex_2_db10(z)[source]¶
Return the magnitude in dB of a complex number (as \(10\log_{10}(|z|)\)).
The magnitude in dB is defined as \(10\log_{10}(|z|)\) where \(z\) is a complex number.
- Parameters
z (number or array_like) – A complex number or sequence of complex numbers
- Returns
mag10dB
- Return type
ndarray or scalar