The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 795 - File: showthread.php PHP 7.4.33 (FreeBSD)
File Line Function
/showthread.php 795 errorHandler->error





Post Reply 
(12C) Permutation & Combination revisit
07-25-2024, 08:36 AM
Post: #1
(12C) Permutation & Combination revisit
This program calculate the Permutation nPr and Combination nCr

using the HP-12C with this program it can be use to do arithmetic calculation.

-----------------------------------------------------------------------

Usage:

For Permutaion make sure program is at the beginning [f] PRGM

for Combination start program at line 16 [g] GTO 16

nPr is Permutation input n [ENTER] r [R/S] display answer

nCr is Combination input n [ENTER] r [R/S] display answer

Both for n > r

------------------------------------------------------------

Example: FIX 0

11P6 - 8P5 = ?

[f] PRGM

11 [ENTER] 6 [R/S] display 332640

8 [ENTER] 5 [R/S] display 6720 [-] display answer 325920

-----------------------------------------------------------------

12C5 - 9P7 = ?

[g] GTO 16

12 [ENTER] 5 [R/S] display 792

[f] PRGM

9 [ENTER] 7 [R/S] display 181440 [-] display answer -180648

------------------------------------------------------------------

8P3 + 6C3 - 5P3 = ?

[f] PRGM

8 [ENTER] 3 [R/S] display 336

[g] GTO 16

6 [ENTER] 3 [R/S] display 20 [+] display 356

[f] PRGM

5 [ENTER] 3 [R/S] display 60 [-] display answer 296

---------------------------------------------------------
Program:
Quote:01 X<>Y
02 n!
03 LSTx
04 X<>Y
05 R↓
06 X<>Y
07 -
08 n!
09 X<>Y
10 R↓
11 ÷
12 X<>Y
13 R↓
14 GTO 00
15 R/S
16 X<>Y
17 n!
18 LSTx
19 X<>Y
20 R↓
21 X<>Y
22 -
23 LSTx
24 n!
25 X<>Y
26 n!
27 x
28 X<>Y
29 R↓
30 ÷
31 X<>Y
32 R↓
33 GTO 15

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


Messages In This Thread
(12C) Permutation & Combination revisit - Gamo - 07-25-2024 08:36 AM



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