Package org.apache.commons.numbers.gamma
Class Erfcx
- java.lang.Object
-
- org.apache.commons.numbers.gamma.Erfcx
-
public final class Erfcx extends java.lang.Object
Scaled complementary error function.\[ \operatorname{erfcx}(z) = \operatorname{erfc}(z)\ e^{z^2} \]
For large z the value is approximately:
\[ \operatorname{erfcx}(z) = \frac{1}{z \sqrt{\pi}} \]
- Since:
- 1.1
- See Also:
Erfc
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Erfcx()
Private constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static double
value(double x)
Returns the scaled complementary error function.
-
-
-
Method Detail
-
value
public static double value(double x)
Returns the scaled complementary error function.Special cases:
- If the argument is 0, then the result is 1.
- If the argument is +infinity, then the result is 0.
- If the argument is negative and
exp(x*x)
is infinite, then the result is +infinity. - If the argument is nan, then the result is nan.
- Parameters:
x
- Value.- Returns:
- the scaled complementary error function.
-
-