(12C Platinum) Reverse Factorial
|
11-27-2018, 08:29 AM
(This post was last modified: 11-28-2018 12:11 PM by Gamo.)
Post: #1
|
|||
|
|||
(12C Platinum) Reverse Factorial
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 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 2 Guest(s)