For a complex number of the form a+bi, IMCOSH implements the following equation:
However, IMCOSH determines if b=0 and in this case simply returns cosh(a).