Example Program to calculate Factorial
|
02-02-2018, 03:15 PM
Post: #24
|
|||
|
|||
RE: Example Program to calculate Factorial
(02-02-2018 08:44 AM)Dieter Wrote:(02-02-2018 05:05 AM)Thomas Okken Wrote: It is possible that the ROM uses a better algorithm, but in the case of n!, I think the basic multiplication is used everywhere. It sounds like it may have a hard-coded value for 160!, so calculations for n >= 160 would require only n - 160 multiplications. That could have been done keep the calculation time from becoming too long, or to keep the error from growing beyond the guard digits. (02-02-2018 01:53 PM)Gerson W. Barbosa Wrote: 1) I cannot find X<Y anywhere on my HP-33C; The HP-25 has X<Y. (Hmm, was it the only HP to have that function until the 41C?) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 4 Guest(s)