3.313. __nv_tanf

float @__nv_tanf(float %x)

Calculate the tangent of the input argument.

Calculate the tangent of the input argument x (measured in radians).

Note

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

Returns

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

  • __nv_tanf( \(\pm \infty\) ) returns NaN.