Home >>Python math Module >Python math.cosh() Method
Python math.cosh() Method in python is used to returns hyperbolic cosine of a number and it accepts a number.
Syntax:math.cosh(x)
Parameter | Description |
---|---|
x | It is required a number to find the hyperbolic cosine, it returns a TypeError |
import math
print (math.cosh(-2))
print (math.cosh(6.23))
print (math.cosh(3.76))
print (math.cosh(0))
import math
x = -54
print("math.cosh(",x,"): ", math.cosh(x))
x = -4.3
print("math.cosh(",x,"): ", math.cosh(x))
x = 0
print("math.cosh(",x,"): ", math.cosh(x))
x = 2
print("math.cosh(",x,"): ", math.cosh(x))
x = 12.27
print("math.cosh(",x,"): ", math.cosh(x))