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

Digamma calculation produces SOE on NaN argument

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.5
    • 4.0, 3.6
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: