Class Erfc

    • Constructor Summary

      Constructors 
      Constructor Description
      Erfc()  
    • Method Summary

      Modifier and Type Method Description
      static double value​(double x)
      This implementation computes erfc(x) using the regularized gamma function, following Erf, equation (3).
      • Methods inherited from class java.lang.Object

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

      • Erfc

        public Erfc()
    • 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, then erf(x) is indistinguishable from either 0 or 2 at double precision, so the appropriate extreme value is returned.

        Parameters:
        x - Value.
        Returns:
        the complementary error function.
        Throws:
        java.lang.ArithmeticException - if the algorithm fails to converge.
        See Also:
        RegularizedGamma.Q.value(double, double, double, int)