Matrix Example test 5, Function test

Description

GSB 5

Tests MATRIX 0 to MATRIX 9 functions.
Scalar operations 2x, 1-, 2+ and 5/
Matrix multiplication and division

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
 5 GSB 5
.1
.2
.3
.4
.5
.6

Flags

Number Description
8 gCF8 Clear complex number flag

Program

Line Display Key Sequence Line Display Key Sequence Line Display Key Sequence
000 041 42,16, 4 f MATRIX 4 082 22 .4 GTO . 4
001 42,21, 5 f LBL 5 042 42 31 f PSE 083 42 31 f PSE
002 43, 5, 8 g CF 8 043 42,16, 4 f MATRIX 4 084 4 4
003 42,16, 0 f MATRIX 0 044 42 31 f PSE 085 36 ENTER
004 2 2 045 42,26,12 f RESULT B 086 4 4
005 42 31 f PSE 046 45,16,11 RCL MATRIX A 087 42,23,15 f DIM E
006 36 ENTER 047 2 2 088 45,16,13 RCL MATRIX C
007 4 4 048 20 × 089 45,16,13 RCL MATRIX C
008 42,23,11 f DIM A 049 1 1 090 42 31 f PSE
009 42,16, 1 f MATRIX 1 050 30 091 42,26,15 f RESULT E
010 1 1 051 2 2 092 42,16, 6 f MATRIX 6
011 u 44 11 USER STO A 052 40 + 093 42,21, .5 f LBL . 5
012 42 31 f PSE 053 5 5 094 42 31 f PSE
013 2 2 054 40 + 095 u 45 15 USER RCL E
014 u 44 11 USER STO A 055 42,21, .1 f LBL . 1 096 22 .5 GTO . 5
015 42 31 f PSE 056 42 31 f PSE 097 42 31 f PSE
016 3 3 057 u 45 11 USER RCL A 098 3 3
017 u 44 11 USER STO A 058 22 .1 GTO . 1 099 36 ENTER
018 42 31 f PSE 059 42 31 f PSE 100 42,23,13 f DIM C
019 4 4 060 45,16,12 RCL MATRIX B 101 45,16,13 RCL MATRIX C
020 u 44 11 USER STO A 061 42,21, .2 f LBL . 2 102 45,16,13 RCL MATRIX C
021 42 31 f PSE 062 42 31 f PSE 103 42,26,14 f RESULT D
022 5 5 063 u 45 12 USER RCL B 104 10 ÷
023 u 44 11 USER STO A 064 22 .2 GTO . 2 105 42,21, .6 f LBL . 6
024 42 31 f PSE 065 42 31 f PSE 106 42 31 f PSE
025 6 6 066 45,16,11 RCL MATRIX A 107 u 45 14 USER RCL D
026 u 44 11 USER STO A 067 45,16,12 RCL MATRIX B 108 22 .6 GTO . 6
027 42 31 f PSE 068 42,26,13 f RESULT C 109 42 31 f PSE
028 7 7 069 42,16, 5 f MATRIX 5 110 45,16,11 RCL MATRIX A
029 u 44 11 USER STO A 070 42,21, .3 f LBL . 3 111 42 31 f PSE
030 42 31 f PSE 071 42 31 f PSE 112 42,16, 7 f MATRIX 7
031 8 8 072 u 45 13 USER RCL C 113 42 31 f PSE
032 u 44 11 USER STO A 073 22 .3 GTO . 3 114 45,16,11 RCL MATRIX A
033 31 R/S 074 42 31 f PSE 115 42 31 f PSE
034 42 31 f PSE 075 45,16,13 RCL MATRIX C 116 42,16, 8 f MATRIX 8
035 45,16,11 RCL MATRIX A 076 45,16,13 RCL MATRIX C 117 42 31 f PSE
036 42 31 f PSE 077 42,26,14 f RESULT D 118 45,16,13 RCL MATRIX C
037 42,16, 2 f MATRIX 2 078 20 × 119 42 31 f PSE
038 42 31 f PSE 079 42,21, .4 f LBL . 4 120 42,16, 9 f MATRIX 9
039 42,16, 3 f MATRIX 3 080 42 31 f PSE 121 42 31 f PSE
040 42 31 f PSE 081 u 45 14 USER RCL D 122 43 32 g RTN