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