पायथन गणित.तन () विधि
उदाहरण
विभिन्न संख्याओं (कोणों) की स्पर्शरेखा ज्ञात कीजिए:
# Import math Library
import math
# Return the tangent of
different numbers
print (math.tan(90))
print (math.tan(-90))
print
(math.tan(45))
print
(math.tan(60))
परिभाषा और उपयोग
यह math.tan()
विधि किसी संख्या की स्पर्श रेखा लौटाती है।
वाक्य - विन्यास
math.tan(x)
पैरामीटर मान
Parameter | Description |
---|---|
x | Required. A number to find the tangent of. If the value is not a number, it returns a TypeError |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | एक float मान, किसी संख्या की स्पर्श रेखा का प्रतिनिधित्व करता है |
---|---|
पायथन संस्करण: | 1.4 |