Python math.degrees() နည်းလမ်း
ဥပမာ
ထောင့်များကို ရေဒီယံမှ ဒီဂရီသို့ ပြောင်းပါ-
# Import math Library
import math
# Convert from radians to
degrees:
print (math.degrees(8.90))
print (math.degrees(-20))
print
(math.degrees(1))
print (math.degrees(90))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
နည်းလမ်း သည် mmath.degrees()
ထောင့်တစ်ခုကို radian မှ ဒီဂရီသို့ ပြောင်းလဲသည်။
အကြံပြုချက်- PI (3.14..) ရေဒီယံသည် 180 ဒီဂရီနှင့် ညီမျှသည်၊ ဆိုလိုသည်မှာ 1 radian သည် 57.2957795 ဒီဂရီနှင့် ညီမျှသည်။
အကြံပြုချက်-math.radians()
ဒီဂရီတန်ဖိုးကို radian အဖြစ်သို့ ပြောင်းရန် လည်း ကြည့်ပါ ။
အထားအသို
math.degrees(x)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
x | Required. A radian value to convert into degrees. If the parameter is not a number, it returns a TypeError |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | တန်ဖိုး တစ်ခု float ၊ ဒီဂရီတန်ဖိုးကို ကိုယ်စားပြုသည်။ |
---|---|
Python ဗားရှင်း- | ၂.၃ |