__device__ double cospi ( double  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-2.


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA