Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


The Python cmath.sinh() function is used to return hyperbolic sine of a complex number. The hyperbolic sine of x is defined as:

sinh

where e is an Euler's number.

Syntax

cmath.sinh(x)

Parameters

x Required. Specify a number to find the hyperbolic sine of

Return Value

Returns the hyperbolic sine of x.

Example:

In the below example, sinh() function is used to find out the hyperbolic sine of the given number.

import cmath

x = 2 + 2j
y = 2
z = 2j

print(cmath.sinh(x))
print(cmath.sinh(y))
print(cmath.sinh(z))

The output of the above code will be:

(-1.5093064853236158+3.4209548611170133j)
(3.626860407847019+0j)
(-0+0.9092974268256817j)

❮ Python cMath Module