Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python math.acosh() Method

Python math.acosh() Method

Python math Module Python math Module

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

math.acosh() accepts arguments greater than or equal to 1.

Python version: 2.6

Syntax

The syntax of 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:

Example

Import the math package

import

math

Output the 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 math Module