(12C Platinum) Factorial

01282019, 05:42 AM
(This post was last modified: 02272019 01:44 AM by Gamo.)
Post: #1




(12C Platinum) Factorial
ALG mode solution program to calculate Factorial.
This program is just the demonstration of the use of [LSTx] in ALG mode. HP12C Platinum User's Guide explain how [LSTx] work in ALG mode. The displayed number is copied into the [LSTx] register when a new calculation commences. In general, [LSTx] in ALG mode is only useful in programs, where it can often be used instead of a numbered storage register, as it persists unchanged at least until digit entry or [LSTx] itself.  Procedure: For n ≤ 69 n [R/S] display n!  Program: ALG Mode Quote:1 [STO] 0 [X<>Y] // Set R0 for later Multiplication Remark: This demo program not include 0! = 1 and no negative integer allow. Gamo 

« Next Oldest  Next Newest »

User(s) browsing this thread: