Package org.apache.commons.numbers.gamma
Class Erfc
- java.lang.Object
-
- org.apache.commons.numbers.gamma.Erfc
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublevalue(double x)This implementation computes erfc(x) using theregularized gamma function, following Erf, equation (3).
-
-
-
Method Detail
-
value
public static double value(double x)
This implementation computes erfc(x) using the
regularized gamma function, following Erf, equation (3).The value returned is always between 0 and 2 (inclusive). If
abs(x) > 40, thenerf(x)is indistinguishable from either 0 or 2 atdoubleprecision, so the appropriate extreme value is returned.- Parameters:
x- Value.- Returns:
- the complementary error function.
- Throws:
ArithmeticException- if the algorithm fails to converge.- See Also:
RegularizedGamma.Q.value(double, double, double, int)
-
-