(12C Platinum) Combination Permutation
|
12-03-2018, 06:05 AM
(This post was last modified: 12-03-2018 06:20 AM by Gamo.)
Post: #1
|
|||
|
|||
(12C Platinum) Combination Permutation
This program is from HP 12C Platinum Solutions Handbook.
To solve for Combination and Permutation the "Flags" is use instead of manually go to [GTO] xxx to go to specific program line. Enter 0 to calculate Combination Enter 1 to calculate Permutation --------------------------------------------------- Procedure: 0 [R/S] display 0 // for Combination m [=] n [R/S] display Answer for Combination ---------------------------------------------------- 1 [R/S] display 1 // for Permutation m [=] n [R/S] display Answer for Permutation ---------------------------------------------------- Example: 5C3 0 [R/S] display 0 // calculate Combination 5 [=] 3 [R/S] display 10 ----------------------------------------------- 11P4 1 [R/S] display 1 // calculate Permutation 11 [=] 4 [R/S] display 7920 ----------------------------------------------- Program: Combination Permutation (ALG Mode) Code:
Gamo |
|||
01-26-2019, 12:57 PM
(This post was last modified: 01-26-2019 01:00 PM by Gamo.)
Post: #2
|
|||
|
|||
RE: (12C Platinum) Combination Permutation
ALG program solution version II
---------------------------------------- **Permutations: x P y Procedure: y [=] x [R/S] display answer Example: 14 P 5 5 [=] 14 [R/S] display 240,240.00 Program: ALG mode Code:
**Combinations: x C y Procedure: y [=] x [R/S] display answer Example: 14 C 5 5 [=] 14 [R/S] display 2002.00 Program: ALG Mode Code:
Gamo |
|||
04-19-2019, 08:41 AM
Post: #3
|
|||
|
|||
RE: (12C Platinum) Combination Permutation
Combinations and Permutation Version III
ALG mode program: Program code is from HP-12C Platinum Solutions Handbook. With this program both Combination and Permutation are combine into one program and the fist answer is Combination follow by Permutation. ------------------------------------------------- Procedure: m [ENTER] n [R/S] display C [R/S] display P -------------------------------------------------- Example: FIX 0 11C5 and 11P5 11 [ENTER] 5 [R/S] 462 [R/S] 55440 Answer: C=462 and P=55440 ------------------------------------------------- Program: ALG mode Code:
Gamo |
|||
01-14-2020, 07:18 AM
(This post was last modified: 01-15-2020 06:18 AM by Gamo.)
Post: #4
|
|||
|
|||
RE: (12C Platinum) Combination Permutation
Combinations and Permutation Version IV
Program on RPN mode mCn for Combination mPn for Permutation Where m can be larger than 69 For Permutation, n must be larger than 1 if user input n = 1 result will be wrong answers otherwise assumeing that if it is mP1 then the answer is m ----------------------------------------- Procedure: RPN mode FIX 0 Combination: Strat at begining of program: [GTO] 000 or [PRGM] mCn m [ENTER] n [R/S] ---> Answer ---------------------------------------- Permutation: Goto Line [GTO] 036 mPn m [R/S] n [R/S] ---> Answer --------------------------------------- Example: FIX 0 150C5 [PGRM] or [GTO] 000 150 [ENTER] 5 [R/S] display 591,600,030. -------------------------------------- 80P5 [GTO] 036 80 [R/S] display 80 5 [R/S] display 2,884,801,920. --------------------------------------- For faster speed on Permutation of m < 70 [GTO] 075 m [R/S] n [R/S] ---> Answer -------------------------------------- Program: RPN mode Code:
Gamo 1/2020 |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)