Python math.cosh() Yöntemi
Örnek
Farklı sayıların hiperbolik kosinüsünü bulun:
# 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))
Tanım ve Kullanım
Yöntem math.cosh()
, bir sayının hiperbolik kosinüsünü döndürür ((exp(sayı) + exp(-sayı)) / 2'ye eşdeğerdir).
Sözdizimi
math.cosh(x)
Parametre Değerleri
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic cosine of. If the value is not a number, it returns a TypeError |
Teknik detaylar
Geri dönüş değeri: | Bir float sayının hiperbolik kosinüsünü temsil eden bir değer |
---|---|
Python Sürümü: | 1.4 |