Matrix Example 2, HP15c Owner's Handbook - Pages 163-168

Description

GSB 2

Matrix A elements are entered
ZC complex form is converted to ZP partitioned form
f MATRIX 2 converts from ZP to Z form

The matrix is inverted and the result placed in B

f MATRIX 3 converts the inverted matrix in ZP form to Z form in B

The Matrices in A and B are now multiplied and the elements read out.

Note: because the simulator is more accurate than the DM15C and the HP-15c the elements which are nearly "zero" are closer to zero than the example in the manual.

I added some R/S statements in the program after each set of matrix STO 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.

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

Program Resources

Labels

Name Description
 2 Matrix Example 1, HP15c Owner's Handbook - Pages 163-168
.2

Flags

Number Description
8 CF8 clear complex number flag

Program

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