Python cmath.inf သည် Constant ဖြစ်သည်။
ဥပမာ
အပြုသဘောနှင့် အနုတ်လက္ခဏာကို အဆုံးမရှိ ပရင့်ထုတ်ပါ-
#Import cmath Library
import cmath
# Print the positive infinity
print (cmath.inf)
# Print the negative infinity
print (-cmath.inf)
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ကိန်း cmath.inf
သေသည် ရေပေါ်အမှတ် အပြုသဘောဆောင်သော အဆုံးမရှိကို ပြန်ပေးသည်။
negative infinity အတွက်၊ သုံး -cmath.inf
ပါ။
cmath.inf သည် ကိန်းသေနှင့် ညီမျှသည် float("inf")
။
အထားအသို
cmath.inf
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | float အပြုသဘောဆောင်သော အဆုံးမရှိတန်ဖိုးကို ကိုယ်စားပြုသော တန်ဖိုး တစ်ခု |
---|---|
Python ဗားရှင်း- | ၃.၆ |