파이썬 cmath.exp() 메서드
예시
복소수의 지수 찾기:
#import cmath for complex number operations
import cmath
#find
the exponential of a complex number
print (cmath.exp(2 + 3j))
정의 및 사용
이 cmath.exp()
메서드는 복소수를 허용하고 지수 값을 반환합니다. 숫자가 x이면 e가 자연 로그의 밑이 되는 e**x를 반환합니다.
통사론
cmath.exp(x)
매개변수 값
Parameter | Description |
---|---|
x | Required. A number to find exponential value of. |
기술적 세부 사항
반환 값: | complex 복소수의 지수를 나타내는 값 |
---|---|
파이썬 버전: | 1.5 |