Use the new cosh or sinh for complex numbers.