Thursday, October 23, 2025
HomeLanguagesPython – cmath.sinh() function

Python – cmath.sinh() function

cmath is python built-in module that is used for complex number mathematics. cmath module has a method sinh() that returns hyperbolic sine of the complex number passed to it.

Syntax: cmath.sinh(Z)

Parameter: It requires only one parameter i.e the number for which hyperbolic sine needs to be calculated.

Return: Returns a complex number that is the hyperbolic sine of the number passed.

Example 1: 

Python3




# Import the Library
import cmath 
  
# Printing the result
print (cmath.sinh(5 + 3j))


Output:

(-73.46062169567368+10.472508533940392j)

Example 2: In this example real number is passed but the returned result is still a complex number.

Python3




# Import the Library
import cmath 
  
# Printing the result
print (cmath.sinh(1))


Output:

(1.1752011936438014+0j)

Example 3: In this example no argument is passed in this case TypeError will be thrown

Python3




# Import the Library
import cmath 
  
# Printing the result
print (cmath.sinh())


Output:

TypeError: sinh() takes exactly one argument (0 given)
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11954 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS