파이썬 cmath.log10() 메서드
예시
복소수의 밑이 10인 로그를 찾습니다.
#Import cmath Library
import cmath
#print base-10 log value of
complex numbers
print (cmath.log10(2+ 3j))
print (cmath.log10(1+ 2j))
정의 및 사용
이 cmath.log10()
메서드는 복소수의 밑이 10인 로그를 반환합니다.
음의 실수 축을 따라 0에서 -∞까지 하나의 분기 절단이 있으며 위에서부터 연속됩니다.
통사론
cmath.log10(x)
매개변수 값
Parameter | Description |
---|---|
x | Required. Specifies the value to calculate the base-10 logarithm for. If the value is 0 or a negative number, it returns a ValueError. If the value is not a number, it returns a TypeError |
기술적 세부 사항
반환 값: | 숫자의 밑이 10인 로그를 나타내는 complex 값 |
---|---|
파이썬 버전: | 1.5 |