cosh method

double cosh()

Returns the hyperbolic cosine of this num.

Implementation

double cosh() {
  final y = exp();
  return (y + 1 / y) / 2;
}