Python math.acosh() – Arc / Inverse Hyperbolic Cosine

Contents

Python math.acosh()

math.acosh(x) function returns the arc hyperbolic cosine of x.

acosh(x) = log(x + sqrt(x^2 – 1))

Syntax

The syntax to call acosh() function is

math.acosh(x)

where

ParameterRequiredDescription
xYesA numeric value. x must be greater than or equal to 1.

If x is not a valid value for acosh() function, then the function raises ValueError.

Example

In the following example, we find the inverse hyperbolic cosine of 5, using acosh() function of math module.

Python Program

import math

x = 5
result = math.acosh(x)
print('acosh(x) :', result)
Run Code Copy

Output

acosh(x) : 2.2924316695611777

Summary

In this Python Examples tutorial, we learned the syntax of, and examples for math.acosh() function.

Code copied to clipboard successfully 👍