Phương thức toán học Python.cosh ()
Thí dụ
Tìm cosin hypebol của các số khác nhau:
# 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))
Định nghĩa và Cách sử dụng
Phương math.cosh()
thức trả về cosin hyperbol của một số (tương đương với (exp (number) + exp (-number)) / 2).
Cú pháp
math.cosh(x)
Giá trị tham số
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError |
Chi tiết kỹ thuật
Giá trị trả lại: | Một float giá trị, đại diện cho cosin hyperbol của một số |
---|---|
Phiên bản Python: | 1,4 |