3.28. __nv_cosf
-
float @__nv_cosf(float %x)
Calculate the cosine of the input argument.
Calculate the cosine 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_cosf( \(\pm 0\) ) returns 1.
__nv_cosf( \(\pm \infty\) ) returns NaN.