(12C) Factorial in Stack
|
04-22-2023, 04:36 AM
Post: #6
|
|||
|
|||
RE: (12C) Factorial in Stack
Yes, the built-in n! function is much quicker but may not be as accurate. The OP’s program takes 28 seconds to calculate 69! on my 1987 USA HP-12C. The built-in n! function takes less than a second. When I subtract the results I get a difference of 2.E89. I am not 100% sure which result is more correct. I would expect the brute force program listed here would be more accurate since it only employs multiplication but the result is beyond 10 digits in this case so rounding is occurring.
|
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(12C) Factorial in Stack - Gamo - 04-07-2023, 08:10 AM
RE: (12C) Factorial in Stack - Tritonio - 04-17-2023, 12:22 PM
RE: (12C) Factorial in Stack - Dave Britten - 04-17-2023, 06:34 PM
RE: (12C) Factorial in Stack - Steve Simpkin - 04-18-2023, 06:13 AM
RE: (12C) Factorial in Stack - Csaba Tizedes - 04-18-2023, 07:01 AM
RE: (12C) Factorial in Stack - Steve Simpkin - 04-22-2023 04:36 AM
RE: (12C) Factorial in Stack - EdS2 - 04-22-2023, 07:32 AM
RE: (12C) Factorial in Stack - Steve Simpkin - 04-22-2023, 07:53 AM
|
User(s) browsing this thread: 2 Guest(s)