27 static const double two_sqrtpi = 1.128379167095512574;
32 double sum = x, term = x, xsqr = x * x;
37 sum -= term / (2 * j + 1);
40 sum += term / (2 * j + 1);
44 return two_sqrtpi * sum;
59 return 2.0 -
erfc(-x);
62 double c = x, d = x * x + 0.5;
63 double q1, q2 = b / d;
67 double t = a * n + b * x;
static double erf(double x)
Computes erf(x)
static double erfc(double x)
Computes erfc(x)
static const double one_sqrtpi
__host__ __device__ int2 abs(int2 v)
Generic file read and write utility for python interface.
static const double c_erfRelativeError
Relative error for Error Function computation.