__device__ double acos ( double  x  ) 

Calculate the principal value of the arc cosine of the input argument x.

Returns:
Result will be in the interval [0, $\pi$] for x inside [-1, +1].
  • acos(1) returns +0.
  • acos(x) returns NaN for x outside [-1, +1].
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