पायथन गणित। डिग्री () विधि
उदाहरण
कोणों को रेडियन से डिग्री में बदलें:
# 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()
विधि एक कोण को रेडियन से डिग्री में परिवर्तित करती है ।
युक्ति: PI (3.14..) रेडियन 180 डिग्री के बराबर है, जिसका अर्थ है कि 1 रेडियन 57.2957795 डिग्री के बराबर है।
युक्ति:math.radians()
डिग्री मान को रेडियन में बदलने के लिए भी देखें ।
वाक्य - विन्यास
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 मान, डिग्री में मान का प्रतिनिधित्व करता है |
---|---|
पायथन संस्करण: | 2.3 |