ExampleEdit & Run
#import the cmath module
import cmath

#print the sine of a radian complex angle
print(cmath.sin(0.5236))
Output:
(0.5000010603626028+0j)[Finished in 0.010807535145431757s]

The cmath.sin() function is a mathematical function used to calculate the sine of a complex angle(given in radians).

Note: The angle must be in radians, not degrees.

Syntax:
cmath.sin(x)
x The angle in radians whose sine is to be calculated. The value of the angle can be real or complex. If the angle is given as a real number, it is converted to a complex value before the operation.
Parameters:

The function returns a complex number that represents the sine value of the input complex number.

ExampleEdit & Run
import cmath

print(cmath.sin(1))
print(cmath.sin(3))
print(cmath.sin(2 + 3j))
print(cmath.sin(10 -5j))
print(cmath.sin(3 + 4j))
Output:
(0.8414709848078965+0j)(0.1411200080598672-0j)(9.15449914691143-4.168906959966565j)(-40.37177863549803+62.2618013618872j)(3.853738037919377-27.016813258003932j)[Finished in 0.010101126972585917s]