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.
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. |
The function returns a complex number that represents the sine value of the input complex number.