#import the cmath module
import cmath
#print the hyperbolic sin of a number
print(cmath.sinh(0.5236))
The cmath.sinh()
function calculates the hyperbolic sine of a complex number given in radians. The angle must be in radians and not degrees.
cmath.sinh(x)
x |
The angle(in radians) whose hyperbolic sine we want. The vale can be a real number or complex number. If it is a complex number, it is first converted to a complex value before the operation. |
The function returns the hyperbolic sine of the input argument, x
.
import cmath
print(cmath.sinh(0.523598))
print(cmath.sinh(0.91-0j))
print(cmath.sinh(1+2j))
print(cmath.sinh(3 + 4j))
print(cmath.sinh(0j))