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

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

[Octave-bug-tracker] [bug #61199] Allow 'char' input sets to nchoosek fo


From: anonymous
Subject: [Octave-bug-tracker] [bug #61199] Allow 'char' input sets to nchoosek for Matlab compatibility
Date: Fri, 24 Sep 2021 20:25:19 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

Follow-up Comment #29, bug #61199 (project octave):

Case where the result is off by 7 AND incorrectly gives no precision warning
at all even though it's off by 7: "nchoosek (63,19)"

Unpatched Octave, incorrect answer with no warning:

>> nchoosek (63,19)
ans = 6131164307078482


Patched Octave:

>> nchoosek (63,19)
ans = 6131164307078475


Please compare Matlab as well. Expecting it will be correct since the result
is less than flintmax.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61199>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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