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

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

[Octave-bug-tracker] [bug #60294] Function factorial for some numbers pr


From: anonymous
Subject: [Octave-bug-tracker] [bug #60294] Function factorial for some numbers produces wrong results
Date: Sat, 27 Mar 2021 13:36:50 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:87.0) Gecko/20100101 Firefox/87.0

URL:
  <https://savannah.gnu.org/bugs/?60294>

                 Summary: Function factorial for some numbers produces wrong
results
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 27 Mar 2021 05:36:48 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: SteWas
        Originator Email: klingklong-moinmoi@yahoo.de
             Open/Closed: Open
                 Release: 6.2.0
         Discussion Lock: Any
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Hello everyone:

I obtain following results:

factorial(17)=    355687428096000
factorial(18)=   6402373705728001
factorial(19)= 121645100408832000

For number 18 result is wrong, 
there should not be a 1 as a last number for example.
Funnily for 19 it might be okay again, as there are zeros at the end. 
Similarly for 23 it isn't good at all, but for 22 and 24 there are zeros at
the end. However with 24 it's only 2 zeros which should be more.

For larger numbers such as 100 its not just the last number being wrong.

With kind regards!
Stefan


 




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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