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, returns TypeError.
Return Value
Returns a float 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 value
print(math.sinh(0.00))
print(math.sinh(-23.45))
print(math.sinh(23))
print(math.sinh(1.00))
print(math.sinh(math.pi))
import math
# Output the hyperbolic sine value
print(math.sinh(0.00))
print(math.sinh(-23.45))
print(math.sinh(23))
print(math.sinh(1.00))
print(math.sinh(math.pi))
Output:
0.0 -7641446994.979367 4872401723.124452 1.1752011936438014 11.548739357257746Other Extensions
Python math Module