acosh()
function is used to find the inverse hyperbolic cosine of x in Python for the given input(x – parameter).
Syntax of acosh()
Function
The syntax of acosh()
function in Python is:
math.acosh(x)
Parameters of acosh()
Function in Python
x
– Where x
is any valid python number (positive or negative). This parameter is required.Note: If the
x
parameter is not a number, acosh()
function will return an Error.
Compatibility
acosh()
function is available and compatible with both Python 2.x
and 3.x
. This function is a part of python standard math library.
Return Value of acosh()
Function in Python
acosh()
function returns the inverse hyperbolic cosine of x for the given input.
Python acosh()
Function Example
# import math library import math print(math.acosh(2)) print(math.acosh(10)) print(math.acosh(22)) print(math.acosh(77)) print(math.acosh(3677))
Output:
1.3169578969248166
2.993222846126381
3.783672704329451
5.036910434119888
8.902999643370542