Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.0, 3.5
    • Fix Version/s: 4.0, 3.6
    • Labels:
      None
    • Environment:

      All

      Description

      In the gamma method, when handling the case "absX > 20", the computation of gammaAbs should replace "x" (see code below with x in bold) by "absX".
      For large negative values of x, the function returns with the wrong sign.

      final double gammaAbs = SQRT_TWO_PI / x *
      FastMath.pow(y, absX + 0.5) *
      FastMath.exp(-y) * lanczos(absX);

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jnd77 Jean Noel Delavalade
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: