Python math.asinh() Method
Python math.asinh(x)Return 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, returns TypeError.
Return Value
Returns a float representing the inverse hyperbolic sine of a number.
Example
The following example returns the inverse hyperbolic sine of different numbers:
Example
# Import the math module
import math
# Output the inverse hyperbolic sine value
print(math.asinh(7))
print(math.asinh(56))
print(math.asinh(2.45))
print(math.asinh(1))
import math
# Output the inverse hyperbolic sine value
print(math.asinh(7))
print(math.asinh(56))
print(math.asinh(2.45))
print(math.asinh(1))
Output:
2.644120761058629 4.718578581151767 1.6284998192841909 0.881373587019543Other Extensions
Python math Module