Home >>Python cmath Module >Python cmath.sin() Method

Python cmath.sin() Method

Python cmath.sin() Method

Python cmath.sin() method in python is used to returns the sine of a given number and it represents the ratio between opposite side of a right triangle and hypotenuse.

Syntax:
cmath.sin(x)

Parameter Values

Parameter Description
x It is a required parameter to find the sine of a given number
Here is an Example of Python cmath.sin() Method:

import cmath
print (cmath.sin(4 + 1j))

Output:
(-1.1678072748895183-0.7681627634565731j)
Example 2:

import cmath
print (cmath.sin(2 + 6j))

Output:
(183.41950887665467-83.9422923295776j)

No Sidebar ads