octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35611] Bug in bincoeff with large n and k


From: Rik
Subject: [Octave-bug-tracker] [bug #35611] Bug in bincoeff with large n and k
Date: Fri, 24 Feb 2012 16:31:33 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

Update of bug #35611 (project octave):

                  Status:               Confirmed => Wont Fix               
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #4:

Marco,

This is just what I suspected.  The underlying routine for gammaln probably
differs by a few eps depending on the backend library.  For your system, the
result is slightly under the true result and rounding brings it up to the
correct value.  For the bug reporter's system the result is slightly higher
than the true result and rounding causes an error.

To recap, there isn't any consistency that Octave can exploit and so this bug
can't be "fixed".  On the other hand, there is a clear workaround which is to
use the appropriate function, nchoosek for integers, and bincoeff for real
values.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35611>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]