3.84. __nv_erf

double @__nv_erf(double %x)

Calculate the error function of the input argument.

Calculate the value of the error function for the input argument x, \(\frac{2}{\sqrt \pi} \int_0^x e^{-t^2} dt\).

Note

For accuracy information, see the CUDA C++ Programming Guide, Mathematical Functions Appendix, Double-Precision Floating-Point Functions section.

Returns

  • __nv_erf( \(\pm 0\) ) returns \(\pm 0\).

  • __nv_erf( \(\pm \infty\) ) returns \(\pm 1\).