Python math.radians() နည်းလမ်း
ဥပမာ
မတူညီသောဒီဂရီများကို radian သို့ပြောင်းပါ
# Import math Library
import math
# Convert different degrees
into radians
print(math.radians(180))
print(math.radians(100.03))
print(math.radians(-20))
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
နည်းလမ်း သည် math.radians()
ဒီဂရီတန်ဖိုးကို radian အဖြစ်သို့ ပြောင်းသည်။
အကြံပြုချက်-math.degrees()
ထောင့်တစ်ခုကို radian မှ ဒီဂရီသို့ ပြောင်းရန် လည်း ကြည့်ပါ ။
အထားအသို
math.radians(x)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
x | Required. The degree value to be converted into radians. If the parameter is not a number, it returns a TypeError |
နည်းပညာဆိုင်ရာအသေးစိတ်
ပြန်ပို့တန်ဖိုး- | တန်ဖိုး တစ်ခု float ၊ ထောင့်တစ်ခု၏ radian တန်ဖိုးကို ကိုယ်စားပြုသည်။ |
---|---|
Python ဗားရှင်း- | 2.0 |