Python cmath.cos() နည်းလမ်း
ဥပမာ
ရှုပ်ထွေးသောနံပါတ်၏ ကိုစင်ကို ရှာပါ-
#import cmath for complex number operations
import cmath
#find
the cosine of a complex number
print (cmath.cos(2 + 3j))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
cmath.cos()
နည်းလမ်းသည် ရှုပ်ထွေးသောကိန်း၏ cosine ကို ပြန်ပေးသည် ။
အထားအသို
cmath.cos(x)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
x | Required. A number to find the cosine of |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | တန်ဖိုး တစ်ခု complex ၊ ရှုပ်ထွေးသောကိန်းတစ်ခု၏ cosine ကိုကိုယ်စားပြုသည်။ |
---|---|
Python ဗားရှင်း- | ၁.၅ |