पायथन math.atan2() विधि
उदाहरण
रेडियन में y/x की चाप स्पर्शरेखा लौटाएं:
# Import math Library
import math
# Return the arc tangent of y/x
in radians
print(math.atan2(8, 5))
print(math.atan2(20, 10))
print(math.atan2(34, -7))
परिभाषा और उपयोग
math.atan2()
विधि रेडियन में y/x की चाप स्पर्शरेखा लौटाती है । जहाँ x और y एक बिंदु (x, y) के निर्देशांक हैं।
लौटाया गया मान PI और -PI के बीच है।
वाक्य - विन्यास
math.atan2(y, x)
पैरामीटर मान
Parameter | Description |
---|---|
y | Required. Specifies a positive or negative number |
x | Required. Specifies a positive or negative number |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | रेडियन में y/x के चाप स्पर्शरेखा का प्रतिनिधित्व करने वाला एक float मान, जो PI और -PI . के बीच है |
---|---|
पायथन संस्करण: | 1.4 |