पायथन गणित। रेडियन () विधि
उदाहरण
विभिन्न अंशों को रेडियन में बदलें:
# 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()
परिवर्तित करती है।
युक्ति:math.degrees()
कोण को रेडियन से अंश में बदलने के लिए भी देखें ।
वाक्य - विन्यास
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 कोण के रेडियन मान का प्रतिनिधित्व करने वाला एक मान |
---|---|
पायथन संस्करण: | 2.0 |