12-03-2018, 06:05 AM
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)
Gamo
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