파이썬 cmath.tanh() 메서드
예시
복소수의 쌍곡탄젠트 찾기:
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
정의 및 사용
이 cmath.tanh()
메서드는 복소수의 쌍곡선 탄젠트를 반환합니다.
통사론
cmath.tanh(x)
매개변수 값
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent of. If the value is not a number, it returns a TypeError |
기술적 세부 사항
반환 값: | complex 복소수의 쌍곡선 탄젠트를 나타내는 값 |
---|---|
파이썬 버전: | 1.5 |