3.27. __nv_cos
-
double @__nv_cos(double %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, Double-Precision Floating-Point Functions section.
- Returns
__nv_cos( \(\pm 0\) ) returns 1.
__nv_cos( \(\pm \infty\) ) returns NaN.