Python math.acosh() Method
Example
Find the hyperbolic arc cosine value of a number:
# Import math Library
import math
# Return the hyperbolic arc cosine
value of numbers
print (math.acosh(7))
print (math.acosh(56))
print (math.acosh(2.45))
print (math.acosh(1))
Try it Yourself »
Definition and Usage
The math.acosh()
method returns the hyperbolic arc
cosine value of a number.
Note: The parameter passed in acosh() must be greater than or equal to 1.
Syntax
math.acosh(x)
Parameter Values
Parameter | Description |
---|---|
x | Required. A number to find the hyperbolic arc cosine of. If the value is less than 1, it returns a ValueError. If the value is not a number, it returns a TypeError |
Technical Details
Return Value: | A float value, representing the hyperbolic arc cosine of a number |
---|---|
Python Version: | 2.6 |