Post Reply 
Example Program to calculate Factorial
02-02-2018, 01:53 PM
Post: #23
RE: Example Program to calculate Factorial
(02-02-2018 08:28 AM)Dieter Wrote:  
(02-02-2018 02:44 AM)Gene Wrote:  For historical purposes and ideas...

Here is factorial from V2N10P11 of PPC Journal:

01 STO 0
02 GTO 05
03 -
04 ST0 x 0
05 1
06 X<Y
07 GTO 03
08 X=Y
09 RCL 00
10 GTO 00 (or R/S)

That's a nice one.

Except that

1) I cannot find X<Y anywhere on my HP-33C;

2) The stack is not properly handled.

What calculator was that program written for?

Gerson.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Example Program to calculate Factorial - Gerson W. Barbosa - 02-02-2018 01:53 PM



User(s) browsing this thread: 2 Guest(s)