3.315. __nv_tanhf

float @__nv_tanhf(float %x)

Calculate the hyperbolic tangent of the input argument.

Calculate the hyperbolic tangent 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_tanhf( \(\pm 0\) ) returns \(\pm 0\).