__device__ double sqrt ( double  x  ) 

Calculate the nonnegative square root of x, $\sqrt{x}$.

Returns:
Returns $\sqrt{x}$.
  • sqrt($\pm 0$) returns $\pm 0$.
  • sqrt($+\infty$) returns $+\infty$.
  • sqrt(x) returns NaN if x is less than 0.
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