Calculate the hyperbolic cosine of a number