3.29. __nv_cosh

double @__nv_cosh(double %x)

Calculate the hyperbolic cosine of the input argument.

Calculate the hyperbolic cosine of the input argument x.

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.

Returns

  • __nv_cosh(0) returns 1.

  • __nv_cosh( \(\pm \infty\) ) returns \(+\infty\).