Matrix Example 1

Description

HP15c Owner's Handbook - Pages 138-140
Solving a system of linear equations.

GSB 1

The program will enter the built-in example data.
3.8, 7.2, 1.3, and -0.9 are entered into 2x2 matrix [A].
16.5 and -22.1 are entered into 2x1 matrix [B]

The solution is matrix [C].
Reading the elemrnts:
-11.2887 is returned
and after a delay
8.2496 is returned.

GSB 1 restarts the program

I added some R/S statements in the program after each set of matrix STO and RCL statements. They are ignored as they are immediately after the last data entry where a program statement skip automatically occurs. If you don’t use these redundant statements you will get strange results. USER mode during programming allows indexed STO and RCL of matrix elements. The f MATRIX 0 statement is also essential.

When running matrix programs don't set USER mode. The program will set this if needed.

John Patterson
jepattersonatactrix.co.nz
http://www.jepspectro.com

Program Resources

Labels

Name Description
 1 Matrix Example 1, HP15c Owner's Handbook - Pages 138-140

Flags

Number Description
8 Clear complex number flag

Program

Line Display Key Sequence Line Display Key Sequence Line Display Key Sequence
000 019 48 . 038 u 44 12 USER STO B
001 42,21, 1 f LBL 1 020 3 3 039 2 2
002 43, 5, 8 g CF 8 021 42 31 f PSE 040 2 2
003 42,16, 0 f MATRIX 0 022 u 44 11 USER STO A 041 48 .
004 2 2 023 48 . 042 1 1
005 36 ENTER 024 9 9 043 16 CHS
006 42,23,11 f DIM A 025 16 CHS 044 42 31 f PSE
007 42,16, 1 f MATRIX 1 026 42 31 f PSE 045 u 44 12 USER STO B
008 3 3 027 u 44 11 USER STO A 046 31 R/S
009 48 . 028 31 R/S 047 42,26,13 f RESULT C
010 8 8 029 2 2 048 45,16,12 RCL MATRIX B
011 42 31 f PSE 030 36 ENTER 049 45,16,11 RCL MATRIX A
012 u 44 11 USER STO A 031 1 1 050 10 ÷
013 7 7 032 42,23,12 f DIM B 051 u 45 13 USER RCL C
014 48 . 033 1 1 052 42 31 f PSE
015 2 2 034 6 6 053 42 31 f PSE
016 42 31 f PSE 035 48 . 054 u 45 13 USER RCL C
017 u 44 11 USER STO A 036 5 5 055 31 R/S
018 1 1 037 42 31 f PSE 056 43 32 g RTN