Python math.cos() Yöntemi
Örnek
Farklı sayıların kosinüsünü bulun:
# Import math Library
import math
# Return the cosine of
different numbers
print (math.cos(0.00))
print (math.cos(-1.23))
print (math.cos(10))
print (math.cos(3.14159265359))
Tanım ve Kullanım
Yöntem math.cos()
, bir sayının kosinüsünü döndürür.
Sözdizimi
math.cos(x)
Parametre Değerleri
Parameter | Description |
---|---|
x | Required. A number to find the cosine of. If the value is not a number, it returns a TypeError |
Teknik detaylar
Geri dönüş değeri: | Bir float açının kosinüsünü temsil eden -1 ile 1 arasında bir değer |
---|---|
Python Sürümü: | 1.4 |