Python cmath.cos() Yöntemi
Örnek
Karmaşık bir sayının kosinüsünü bulun:
#import cmath for complex number operations
import cmath
#find
the cosine of a complex number
print (cmath.cos(2 + 3j))
Tanım ve Kullanım
Yöntem cmath.cos()
, karmaşık bir sayının kosinüsünü döndürür.
Sözdizimi
cmath.cos(x)
Parametre Değerleri
Parameter | Description |
---|---|
x | Required. A number to find the cosine of |
Teknik detaylar
Geri dönüş değeri: | complex Karmaşık bir sayının kosinüsünü temsil eden bir değer |
---|---|
Python Sürümü: | 1.5 |