Home >>Python cmath Module >Python cmath.log10() Method
Python cmath.log10() method in python is used to returns the base-10 logarithm of a given complex number.
Syntax:cmath.log10(x)
Parameter | Description |
---|---|
x | It is a Required parameter used to specifies the value to calculate the base-10 logarithm |
import cmath
print (cmath.log10(4+ 3j))
print (cmath.log10(2+ 2j))
import cmath
x = cmath.log10(18)
print(x)