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