erfc function
Calculates the complementary error function.
Implementation
double erfc(double x) {
if (x == 0) {
return 1;
}
if (double.infinity == x) {
return 0;
}
if (double.negativeInfinity == x) {
return 2;
}
if (double.nan.compareTo(x) == 0) {
return double.nan;
}
return _erfImp(x, true);
}