Python math.cos() နည်းလမ်း
ဥပမာ
မတူညီသောဂဏန်းများ၏ cosine ကိုရှာပါ
# 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))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
math.cos()
နည်းလမ်းသည် ကိန်းတစ်ခု၏ cosine ကို ပြန်ပေးသည် ။
အထားအသို
math.cos(x)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
x | Required. A number to find the cosine of. If the value is not a number, it returns a TypeError |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | တန်ဖိုး တစ်ခု float ၊ -1 မှ 1 သည် ထောင့်တစ်ခု၏ cosine ကိုကိုယ်စားပြုသည်။ |
---|---|
Python ဗားရှင်း- | ၁.၄ |