Computes the hyperbolic cosine function.