Class Erfc


  • public final class Erfc
    extends java.lang.Object
    Complementary error function.

    \[ \begin{aligned} \operatorname{erfc}(z) &= 1 - \operatorname{erf}(z) \\ &= \frac{2}{\sqrt\pi}\int_z^{\infty} e^{-t^2}\,dt \end{aligned} \]

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Erfc()
      Private constructor.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double value​(double x)
      Returns the complementary error function.
      • Methods inherited from class java.lang.Object

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

      • Erfc

        private Erfc()
        Private constructor.
    • Method Detail

      • value

        public static double value​(double x)
        Returns the complementary error function.

        The value returned is always between 0 and 2 (inclusive). The appropriate extreme is returned when erfc(x) is indistinguishable from either 0 or 2 at double precision.

        Special cases:

        • If the argument is 0, then the result is 1.
        • If the argument is > 28, then the result is 0.
        • If the argument is < 6, then the result is 2.
        • If the argument is nan, then the result is nan.
        Parameters:
        x - Value.
        Returns:
        the complementary error function.