Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Erfcx

        private Erfcx()
        Private constructor.
    • 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.