Python matematik.tanh() Yöntem
Örnek
Farklı sayıların hiperbolik tanjantını bulun:
# Import math Library
import math
# Return the hyperbolic tangent of
different numbers
print(math.tanh(8))
print(math.tanh(1))
print(math.tanh(-6.2))
Tanım ve Kullanım
Yöntem math.tanh()
, bir sayının hiperbolik tanjantını döndürür.
Sözdizimi
math.tanh(x)
Parametre Değerleri
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic tangent 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 tanjantını temsil eden bir değer |
---|---|
Python Sürümü: | 1.4 |