Home >>Python cmath Module >Python cmath.cosh() Method

Python cmath.cosh() Method

Python cmath.cosh() Method

Python cmath.cosh() method in python is used to returns the hyperbolic cosine of a complex number.

Syntax:
cmath.cosh(x)

Parameter Values

Parameter Description
x It is required to find the hyperbolic cosine of a number
Here is an Example of Python cmath.cosh() Method:

import cmath
print (cmath.cosh(6 + 2j))

Output:
(-83.9433238544545+183.41725495367868j)
Example 2:

import cmath
print (cmath.cosh(2 + 2j))

Output:
(-1.5656258353157435+3.297894836311237j)