Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-1241

Digamma calculation produces SOE on NaN argument

    Details

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

      Description

      Digamma doesn't work particularly well with NaNs.

      How to reproduce: call Gamma.digamma(Double.NaN)

      Expected outcome: returns NaN or throws a meaningful exception

      Real outcome: crashes with StackOverflowException, as digamma enters infinite recursion.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              dievsky Aleksei Dievskii
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: