cosh method

Complex cosh()

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

Implementation

Complex cosh() {
  final oppz = opposite; // -z
  final numerator = exp() + oppz.exp();
  return numerator / Complex(2.0, 0.0);
}