3.89. __nv_erfcx

double @__nv_erfcx(double %x)

Calculate the scaled complementary error function of the input argument.

Calculate the scaled complementary error function of the input argument x, \(e^{x^2}\cdot \textrm{erfc}(x)\).

Note

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

Returns

  • __nv_erfcx( \(-\infty\) ) returns \(+\infty\)

  • __nv_erfcx( \(+\infty\) ) returns +0

  • __nv_erfcx(x) returns \(+\infty\) if the correctly calculated value is outside the double floating point range.