Post Reply 
(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:

X=0
GTO 016
1
R/S
LSTx
-
X<>Y
=
X<>Y
n!
÷
X<>Y
n!
=
GTO 000
0
R/S
LSTx
-
X<>Y
=
X<>Y
n!
÷
X<>Y
n!
÷
LSTx
n!
=

Gamo
Find all posts by this user
Quote this message in a reply
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:

[-] [X<>Y] [=] [n!] [÷] [X<>Y] [n!] [=] [1/x]
----------------------------------------
**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:

[-] [X<>Y] [=] [n!] [x] [LSTx] [n!] [=] [÷] [X<>Y] [n!] [=] [1/x]

Gamo
Find all posts by this user
Quote this message in a reply
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:

006// [LSTx] [-] [X<>Y] [=] [X<>Y] [n!]
014// [÷] [X<>Y] [n!] [÷] [LSTx] [n!] [=] [R/S]
023// [R↓] [R↓] [=] [LSTx] [=] [LSTx] [-] [X<>Y] [=]
030// [X<>Y] [n!] [÷] [X<>Y] [n!] [=] [GTO 000]

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




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