sinh method

Complex sinh()

Calculate the complex hyperbolic sine function (sinh(z)).

Implementation

Complex sinh() {
  final a = _re;
  final b = _im;
  // Re: sinh(a) * cosh(b)
  final realPart = _sinH(a) * _cosH(b);
  // Im: cosh(a) * sinh(b)
  final imagPart = _cosH(a) * _sinH(b);
  return Complex(realPart, imagPart);
}