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