Class Erfcx

java.lang.Object
org.apache.commons.numbers.gamma.Erfcx

public final class Erfcx extends 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:
  • Constructor Details

    • Erfcx

      private Erfcx()
      Private constructor.
  • Method Details

    • 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.