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

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

[Octave-bug-tracker] [bug #61565] nchoosek broken for integer inputs


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #61565] nchoosek broken for integer inputs
Date: Wed, 1 Dec 2021 17:28:31 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

Follow-up Comment #9, bug #61565 (project octave):

That is even better if Matlab returns an integer. I was basing my statement on
what I read in this bug report about nchoosek:
https://savannah.gnu.org/bugs/index.php?61199#comment25

Could you please check Matlab whether it warns of precision for values more
than flintmax? If not, that can be removed or changed from nchoosek too. Good
tests are: nchoosek (60, 30) gives a value above flintmax but less than 2^64,
so passing both inputs as uint64 will help. Another is nchoosek (80, 40) which
is well above 2^64, so any precision warning should be triggered in Matlab.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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