Example Program to calculate Factorial
|
01-31-2018, 02:59 PM
Post: #2
|
|||
|
|||
RE: Example Program to calculate Factorial
Great! This is also the Example used by Wikipedia for the HP-16C. That example has only nine steps, though it does not employ the validity check at the start, and the 16C has the DSZ (decrement, skip if zero) instruction that the 11C does not. It should be possible to make something out of the DSE instruction though. still i like about your program that it is easier to overlook which is good for starters, as the wikipedia example is heavily optimized and not as easy to understand on first look.
Maybe one could extend the Example on to "how to save space" or similar if the second program was added. this is it: Code: 001 LBL F 43,22, F Define label F (mnemonic for "factorial") |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)