파이썬 math.cosh() 메서드
예시
다른 숫자의 쌍곡선 코사인 찾기:
# Import math Library
import math
# Return the hyperbolic cosine of
different numbers
print (math.cosh(1))
print (math.cosh(8.90))
print (math.cosh(0))
print (math.cosh(1.52))
정의 및 사용
이 math.cosh()
메서드는 숫자의 쌍곡선 코사인을 반환합니다((exp(숫자) + exp(-숫자)) / 2와 동일).
통사론
math.cosh(x)
매개변수 값
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError |
기술적 세부 사항
반환 값: | 숫자의 쌍곡선 코사인을 나타내는 float 값 |
---|---|
파이썬 버전: | 1.4 |