3.85. __nv_erfc

double @__nv_erfc(double %x)

Calculate the complementary error function of the input argument.

Calculate the complementary error function of the input argument x, 1 - erf(x).

Note

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

Returns

  • __nv_erfc( \(-\infty\) ) returns 2.

  • __nv_erfc( \(+\infty\) ) returns +0.