Python math.erf() နည်းလမ်း
ဥပမာ
မတူညီသောနံပါတ်များအတွက် ပရင့်အမှားလုပ်ဆောင်ချက်
# Import math Library
import math
# Print error function for
different
numbers
print (math.erf(0.67))
print (math.erf(1.34))
print
(math.erf(-6))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
math.erf()
နည်းလမ်းသည် နံပါတ်တစ်ခု၏ error function ကို ပြန်ပေးသည် ။
ဤနည်းလမ်းသည် - inf နှင့် + inf အကြားတန်ဖိုးကို လက်ခံပြီး - 1 မှ + 1 ကြားတန်ဖိုးကို ပြန်ပေးသည်။
အထားအသို
math.erf(x)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
x | Required. A number to find the error function of |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ဂဏန်း float တစ်ခု၏ အမှားလုပ်ဆောင်ချက်ကို ကိုယ်စားပြုသော တန်ဖိုးတစ်ခု |
---|---|
Python ဗားရှင်း- | ၃.၂ |
နောက်ထပ် ဥပမာများ
ဥပမာ
တူညီသောကိန်းဂဏန်းများ၊ အပေါင်းနှင့် အနုတ်တို့၏ သင်္ချာအမှားကို တွက်ချက်ပါ-
print (math.erf(1.28))
print (math.erf(-1.28))