3x3 matrix operations for the HP-12C



#8

There has been a lot of messages concerning trig. functions for the HP-12C.

Here is a new math theme for the HP-12C fans:



3x3 MATRIX OPERATIONS FOR THE HP-12C



I wrote this program some times ago. I just wanted to see if it is possible to program any 3x3 matrix operations for the HP-12C.

And it was possible...

This program uses Cramer's rule to solve systems of linear equations with 3 unknowns.

In matrix form AX=B.



PROGRAM LISTING

01   0
02 STO 0
03 RCL 5
04 RCL 9
05 *
06 RCL 6
07 RCL 8
08 *
09 -
10 RCL 1
11 *
12 RCL 4
13 RCL 9
14 *
15 RCL 6
16 RCL 7
17 *
18 -
19 RCL 2
20 *
21 -
22 RCL 4
23 RCL 8
24 *
25 RCL 5
26 RCL 7
27 *
28 -
29 RCL 3
30 *
31 +
32 RCL 0
33 X=0?
34 GTO 41
35 /
36 R/S
37 1
38 CHS
39 STO*0
40 GTO 44
41 RDN
42 STO 0
43 /
44 RCL 1
45 RCL 2
46 RCL 3
47 RCL n
48 STO 3
49 RDN
50 STO 2
51 RDN
52 STO 1
53 RDN
54 STO n
55 RCL 4
56 RCL 5
57 RCL 6
58 RCL i
59 STO 6
60 RDN
61 STO 5
62 RDN
63 STO 4
64 RDN
65 STO i
66 RCL 7
67 RCL 8
68 RCL 9
69 RCL PV
70 STO 9
71 RDN
72 STO 8
73 RDN
74 STO 7
75 RDN
76 STO PV
77 GTO 03


USER INSTRUCTIONS



1) Key in the program

2) Store elements of matrix A into registers R1 through R9

3) Store elements of matrix B into registers n, i and PV

4) Press [f] [PRGM] [R/S] to calculate x1

5) Press [R/S] to calculate x2

6) Press [R/S] to calculate x3

7) Press [R/S] once again to return elements of matrices A and B into their original registers (-1.00 will be displayed)

8) For a new case, go to step 2 or 3.



Rem: If Det A=0, then the system is linearly dependent and this program is not applicable (Error 0 will be displayed)

Ref: For example HP-34C Mathematics Applications Book

#9

Cool!

Do you store the matix A by rows or by columns in registers 1 through 9?

Namir


#10

Store elements of matrix A by rows:



a11 into R1

a12 into R2

a13 into R3

a21 into R4

etc.



Have a nice calculating day!

Kalevipoeg


#11

Thanks!!!

#12

Very nice!

What will come next? Numerical integration?

I wonder why HP did not include more scientific functions in the new Platinum model. Are they affraid that would scare potential buyers? If so, they are underestimating business people. Or have they just lost the know-how?.

Don't you think it is time to realese a 15C Platinum, or at least a 15C Tin? Oops, I'm getting off-topic. Sorry.

Regards,

Gerson

#13

I just know I'm missing something here - but I'm I know that the HP11C doesn't have STO PV or RCL PV so I was wondering what the HP11C equivalents are in this case ?

Thanks


#14

Hi,

n, i, PV, PMT and FV are special financial register of the 12C. You can use the remanaing registers instead. The author has used some of those because he ran out of ordinary registers as his program grew, I think.

Regards,

Gerson.


Possibly Related Threads...
Thread Author Replies Views Last Post
  AFTER HP-Prime update, Shift+Matrix CRASHES Joseph Ec 3 241 12-06-2013, 11:06 AM
Last Post: Joseph Ec
  HP Prime Matrix TERRIBLE bug and question uklo 19 821 11-25-2013, 12:10 PM
Last Post: Mic
  HP Prime: editing a matrix Alberto Candel 6 283 11-20-2013, 06:26 PM
Last Post: Helge Gabert
  Absolute Value and Matrix BruceTTT 5 307 11-11-2013, 11:52 PM
Last Post: Walter B
  HP Prime Stack operations from within a program John Colvin 1 174 11-08-2013, 09:45 PM
Last Post: Helge Gabert
  HP Prime: Operations with Large Numbers Eddie W. Shore 0 102 10-19-2013, 12:24 AM
Last Post: Eddie W. Shore
  [HP-Prime xcas] operations with complex numbers + BUGs + Request CompSystems 9 467 09-08-2013, 10:40 PM
Last Post: CompSystems
  WP-34S Matrix operations with routine-local registers? Tom Grydeland 1 164 09-04-2013, 10:46 AM
Last Post: Marcus von Cube, Germany
  Matrix Characteristic Polynomial - Reloaded. Ángel Martin 12 469 08-22-2013, 05:33 PM
Last Post: Thomas Klemm
  Matrix Richard Berler 3 204 08-18-2013, 06:24 PM
Last Post: Paul Dale

Forum Jump: