Class RegularizedGamma.P

    • Method Detail

      • value

        public static double value​(double a,
                                   double x)
        Computes the regularized gamma function \( P(a, x) \).
        Parameters:
        a - Argument.
        x - Argument.
        Returns:
        \( P(a, x) \).
        Throws:
        ArithmeticException - if the continued fraction fails to converge.
      • value

        public static double value​(double a,
                                   double x,
                                   double epsilon,
                                   int maxIterations)
        Computes the regularized gamma function \( P(a, x) \). The implementation of this method is based on:
        Parameters:
        a - Argument.
        x - Argument.
        epsilon - Tolerance in continued fraction evaluation.
        maxIterations - Maximum number of iterations in continued fraction evaluation.
        Returns:
        \( P(a, x) \).
        Throws:
        ArithmeticException - if the continued fraction fails to converge.