comnum.lin2db#
- comnum.lin2db(x)#
Convert a linear ratio to decibels,
10 log10 x.- Parameters:
x (float | array_like) – the linear ratio.
- Returns:
the ratio (dB).
- Return type:
- Raises:
ValueError – for values that are not real numbers.
Examples
>>> import comnum >>> comnum.lin2db(100.0) 20.0