__device__ float cospif ( float  x  ) 

Calculate the cosine of x$\times \pi$ (measured in radians), where x is the input argument.

Returns:
  • cospif($\pm 0$) returns 1.
  • cospif($\pm \infty$) returns NaN.
Note:
For accuracy information for this function see the CUDA C Programming Guide, Appendix C, Table C-1.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA