sin method

Complex sin()

Calculates the sine of this complex number.

Implementation

Complex sin() {
  return Complex(
    math.sin(real) * _cosh(imaginary),
    math.cos(real) * _sinh(imaginary),
  );
}