Python math.acos() နည်းလမ်း
ဥပမာ
မတူညီသော ဂဏန်းများ၏ arc cosine ကို ပြန်ပေးပါ။
# Import math Library
import math
# Return the arc cosine
of numbers
print(math.acos(0.55))
print(math.acos(-0.55))
print(math.acos(0))
print(math.acos(1))
print(math.acos(-1))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
နည်းလမ်းသည် နံပါတ် တစ်ခု၏ math.acos()
arc cosine တန်ဖိုးကို ပြန်ပေးသည်။
မှတ်ချက်- ဖြတ်သွားသော ကန့်သတ်ဘောင်သည် math.acos()
-1 မှ 1 ကြားရှိရပါမည်။
အကြံပြုချက်- math.acos(-1)
PI တန်ဖိုးကို ပြန်ပေးပါမည်။
အထားအသို
math.acos(x)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
x | Required. A number in the range -1 to 1. If x is not a number, it returns a TypeError |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | တန်ဖိုး တစ်ခု float ၊ ဂဏန်းတစ်ခု၏ arc ကိုsine ကိုကိုယ်စားပြုသည်။ |
---|---|
Python ဗားရှင်း- | ၁.၄ |