Python cmath.log10() နည်းလမ်း
ဥပမာ
ရှုပ်ထွေးသောနံပါတ်တစ်ခု၏ အခြေခံ-10 လော့ဂရစ်သမ်ကို ရှာပါ-
#Import cmath Library
import cmath
#print base-10 log value of
complex numbers
print (cmath.log10(2+ 3j))
print (cmath.log10(1+ 2j))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
cmath.log10()
နည်းလမ်းသည် ရှုပ်ထွေးသောနံပါတ်တစ်ခု၏ အခြေခံ-10 လော့ဂရစ်သမ်ကို ပြန်ပေးသည် ။
အနုတ်အမှန်ဝင်ရိုးတစ်လျှောက် 0 မှ -∞ အထက်မှ စဉ်ဆက်မပြတ် အကိုင်းအခက်တစ်ခုရှိသည်။
အထားအသို
cmath.log10(x)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
x | Required. Specifies the value to calculate the base-10 logarithm for. If the value is 0 or a negative number, it returns a ValueError. If the value is not a number, it returns a TypeError |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | ဂဏန်း complex တစ်ခု၏ အခြေခံ-10 လော့ဂရစ်သမ်ကို ကိုယ်စားပြုသော တန်ဖိုး |
---|---|
Python ဗားရှင်း- | ၁.၅ |