Post Reply 
HP 40gs how to get a submartix from a matrix
09-01-2023, 02:31 AM
Post: #5
RE: HP 40gs how to get a submartix from a matrix
While I tried experimenting with the MAKEMAT in the hp 40gs, it seems to operate with ONLY adjacent rows and columns.
Eg:
MAKEMAT(M1(I,J+1),2,2) returns
[[2,3],[5,6]]

MAKEMAT(M1(I+1,J),2,2) returns
[[4,5],[7,1]]

It appears that you cannot use MAKEMAT to produce a desired result of

[[1,3],[4,6]]

BUT applying the method in the python example it is possible
In the original example we had M1.

We make a matrix M2 being our U
[[0,1,0],[0,0,1]] STO M2
We make a matrix M3 being our V
[[0,0],[1,0],[0,1]] STO M3

Then applying our python program U@M@V
M2*M1*M3
[[5,6],[8,9]]

Similarly apply this
We make a matrix M2 being our U
[[1,0,0],[0,0,1]] STO M2
We make a matrix M3 being our V
[[1,0],[0,0],[0,1]] STO M3

Then applying our python program U@M@V
M2*M1*M3
[[1,3],[7,9]]

Now to get [[1,3],[4,6]]
[[1,0,0],[0,1,0]] STO M2
We make a matrix M3 being our V
[[1,0],[0,0],[0,1]] STO M3

M2*M1*M3
[[1,3],[4,6]]

Thank you
Anthony, Sydney
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP 40gs how to get a submartix from a matrix - Anthony The Koala - 09-01-2023 02:31 AM



User(s) browsing this thread: 1 Guest(s)