[numerics] Fix type in Cosh