(12C Platinum) Reverse Factorial - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (12C Platinum) Reverse Factorial (/thread-11853.html) |
(12C Platinum) Reverse Factorial - Gamo - 11-27-2018 08:29 AM Just acquired a brand new HP-12C Platinum and here is the first program for it. This program also work on original HP-12C. Program is use for reverse factorial. If you know the number of ways and need to know what is the value of its Factorial. ----------------------------------------------------- Procedure: Integer [R/S] display Factorial Integer If Integer is not a perfect Factorial the answer will display "negative" Factorial integer, then switch stack display the + or - integer. Integer [R/S] display Negative Factorial [X<>Y] +or- Integer Remark: The negative result indicate that this is not a perfect factorial. ---------------------------------------------- Example: 120 is what Factorial? 120 [R/S] display 5 Answer: 5! ----------------------------------- 555 is what Factorial? 555 [R/S] display -5 [X<>Y] 435 Answer: 5! + 435 --------------------------------- Program: Reverse Factorial (RPN Mode) Code:
Program for ALG Mode Code:
Gamo |