Python cmath.tanh() Yöntemi
Örnek
Karmaşık bir sayının hiperbolik tanjantını bulun:
#Import cmath Library
import cmath
#Return the hyperbolic tangent
of a complex number
print (cmath.tanh(2 + 3j))
Tanım ve Kullanım
Yöntem cmath.tanh()
, karmaşık bir sayının hiperbolik tanjantını döndürür.
Sözdizimi
cmath.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: | complex Karmaşık bir sayının hiperbolik tanjantını temsil eden bir değer |
---|---|
Python Sürümü: | 1.5 |