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: Thu, 23 Sep 2021 10:18:46 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

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

The results look correct, except for this edge case where n is a single
character, where it converts n to the ASCII value and returns the numeric
value nCk as a double:


>> nchoosek ("A", 0)
ans = 1
>> nchoosek ("A", 1)
ans = 65
>> class (nchoosek ("A", 0))
ans = double
>> class (nchoosek ("A", 1))
ans = double



    _______________________________________________________

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]