Python math.asinh() Method
Python math.asinh(x) Returns the inverse hyperbolic sine of x.
Python version: 2.6
Syntax
The syntax of the math.asinh() method is as follows:
math.asinh(x)
Parameter Description:
- x -- required, a positive or negative number. If x is not a number, a TypeError is returned.
Return Value
Returns a floating-point number representing the inverse hyperbolic sine of a number.
Example
The following example returns the inverse hyperbolic sine of different numbers:
Example
Import the math package
import
math
Output the inverse hyperbolic sine values
(
math
.
asinh
(
7
)
)
(
math
.
asinh
(
56
)
)
(
math
.
asinh
(
2.45
)
)
(
math
.
asinh
(
1
)
)
Output result:
2.644120761058629
4.718578581151767
1.6284998192841909
0.881373587019543
Python math Module