Python math.sinh() Method
Python math.sinh(x) Returns the hyperbolic sine of x.
Python version: 1.4
Syntax
The syntax of the math.sinh() method is as follows:
math.sinh(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 hyperbolic sine of a number.
Example
The following example returns the hyperbolic sine of different numbers:
Example
Import the math package
import
math
Output the hyperbolic sine values
(
math
.
sinh
(
0.00
)
)
(
math
.
sinh
(
23.45
)
)
(
math
.
sinh
(
23
)
)
(
math
.
sinh
(
1.00
)
)
(
math
.
sinh
(
math
.
pi
)
)
Output result:
0.0
-7641446994.979367
4872401723.124452
1.1752011936438014
11.548739357257746
Python math Module