Matrix example 7 - Simple matrix divide test.

Description

N STO 2 where N is the matrix dimension NxN up to 8x8.

GSB 7 to start

Random numbers are entered by the program into [A]
[A] is copied into [C]
[C]/[A] should yield the identity matrix.

I have added STO MATRIX C, RCL MATRIX C after step 18 and the simulator now creates an identity matrix in [B]

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

Program Resources

Labels

Name Description
 7 GSB 7 to start
.7 Loop to enter random numbers
.8 Loop to read the elements of [b]

Storage Registers

Name Description
 2

Flags

Number Description
8 CF8 clear complex number flag

Program

Line Display Key Sequence Line Display Key Sequence
000 014 u 44 11 USER STO A
001 42,21, 7 f LBL 7 015 22 .7 GTO . 7
002 43, 5, 8 g CF 8 016 42 31 f PSE
003 42,16, 0 f MATRIX 0 017 42,26,12 f RESULT B
004 45 2 RCL 2 018 45,16,11 RCL MATRIX A
005 36 ENTER 019 44,16,13 STO MATRIX C
006 42,23,11 f DIM A 020 45,16,13 RCL MATRIX C
007 42,16, 1 f MATRIX 1 021 45,16,11 RCL MATRIX A
008 42,21, .7 f LBL . 7 022 10 ÷
009 42 31 f PSE 023 42,21, .8 f LBL . 8
010 42 36 f RAN # 024 42 31 f PSE
011 2 2 025 u 45 12 USER RCL B
012 0 0 026 22 .8 GTO . 8
013 20 × 027 43 32 g RTN