sin

fun sin(complex: Complex): Complex(source)

Computes the sine of a given complex number using the formula: sin(z) = sin(a) * cosh(b) - i * cos(a) * sinh(b), where z = a + bi is the complex number, a is the real part, and b is the imaginary part.

Return

A new instance of Complex representing the sine of the given complex number.

Parameters

complex

The complex number for which the sine is computed.