Easy Tutorial
❮ Python Inputoutput Ref Math Isinf ❯

Python math.acosh() Method

Python math Module

Python math.acosh(x) returns the inverse hyperbolic cosine of x.

The parameter accepted by math.acosh() is greater than or equal to 1.

Python Version: 2.6

Syntax

The syntax for the math.acosh() method is as follows:

math.acosh(x)

Parameter Description:

Return Value

Returns a floating-point number representing the inverse hyperbolic cosine of a number.

Example

The following example returns the inverse hyperbolic cosine of different numbers:

# Import math package
import math

# Print inverse hyperbolic cosine values
print(math.acosh(7))
print(math.acosh(56))
print(math.acosh(2.45))
print(math.acosh(1))

Output result:

2.6339157938496336
4.718419142372879
1.5447131178707394
0.0

Python math Module

❮ Python Inputoutput Ref Math Isinf ❯