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: anonymous
Subject: [Octave-bug-tracker] [bug #35611] Bug in bincoeff with large n and k
Date: Thu, 23 Feb 2012 15:28:29 +0000
User-agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; IAV70-00000000; .NET4.0C; .NET4.0E; IAV70-00000000)

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

                 Summary: Bug in bincoeff with large n and k
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Do 23 Feb 2012 15:28:28 UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: Marcus Meyer
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

octave-3.2.4.exe:10> bincoeff(100,10)
ans =  17310309456441

The correct result is:

octave-3.2.4.exe:13> 10*11*98*97*19*31*23*13*94
ans =  17310309456440

Matlab gives the correct result with nchoosek(100,10).
Maybe bincoeff can be improved for large input?

Best regards and thanks
Marcus




    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

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