Python cmath.cosh() Method

❮ cmath Methods


Example

Find the hyperbolic cosine of a complex number:

#import cmath for complex number operations
import cmath

#find the hyperbolic cosine of a complex number
print (cmath.cosh(2 + 3j))
Try it Yourself »

Definition and Usage

The cmath.cosh() method returns the hyperbolic cosine of a complex number.


Syntax

cmath.cosh(x)

Parameter Values

Parameter Description
x Required. A number to find the hyperbolic cosine of

Technical Details

Return Value: A complex value, representing the hyperbolic cosine of a complex number
Python Version: 1.5

❮ cmath Methods

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.