Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Python math.sinh() Method

Python math.sinh() Method

Python math Module Python math Module

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:

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

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 result:


0.0
-7641446994.979367
4872401723.124452
1.1752011936438014
11.548739357257746

Python math Module Python math Module