The cmath.log10()
function calculates the base-10 logarithm of a given complex number.
cmath.log10(x)
x |
The value(real or complex) whose base-10 logarithm is to be calculated. |
The function returns the base-10 logarithm of x
as a complex number. The value returned is equivalent to cmath.log(x, 10).
If the value of x
is 0, a ValueError
is raised.