Math.gamma fails on certain values when it shouldn't
----------------------------------------------------

                 Key: JRUBY-3936
                 URL: http://jira.codehaus.org/browse/JRUBY-3936
             Project: JRuby
          Issue Type: Bug
          Components: Ruby 1.9
    Affects Versions: JRuby 1.4
         Environment: github trunk, Mac OS X 10.6, Java 6
            Reporter: Hiro Asari
            Assignee: Thomas E Enebo
             Fix For: JRuby 1.4
         Attachments: 
0001-Math.gamma-Math.lgamma-should-return-valid-values-fo.patch

When I changed the internals while working on JRUBY-3811, I forgot to consider 
signs in certain cases. As a result, Math.gamma(x) and Math.lgamma(x) fail for 
x in intervals (2n-1,2n) for n<=0. Attached patch fixes this issue.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to