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