3.30. __nv_coshf

float @__nv_coshf(float %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, Single-Precision Floating-Point Functions section.

Returns

  • __nv_coshf(0) returns 1.

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