3.314. __nv_tanh

double @__nv_tanh(double %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, Double-Precision Floating-Point Functions section.

Returns

  • __nv_tanh( \(\pm 0\) ) returns \(\pm 0\).