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 19:41:11 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

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

@Rik:

First, your email with the cut-off portion is here:

https://lists.gnu.org/archive/html/octave-bug-tracker/2021-09/msg00238.html

Second, this is what I get for unpatched Octave:


octave:4> format long g compact
octave:5> 
octave:5> nchoosek (56,28)
warning: nchoosek: possible loss of precision
warning: called from
    nchoosek at line 118 column 7

ans = 7648690600760440
octave:6> ver
----------------------------------------------------------------------
GNU Octave Version: 7.0.0 (hg id: 54774a713d7c)
-verbatim

The result is accurate but I get the warning about loss of precision. I've
included version information.

With the patch, there's no warning or discrepancy up to flintmax.

Do you get the same result?


    _______________________________________________________

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]