sin function
Return the sine of complex
.
Implementation
Complex<num, num> sin(Complex complex) {
var r = math.sin(complex.real) * _cosh(complex.imaginary);
var i = math.cos(complex.real) * _sinh(complex.imaginary);
return Complex<num, num>(r, i);
}