Post Reply 
Creating matrix on HP 50g
04-29-2015, 02:26 PM (This post was last modified: 04-29-2015 02:29 PM by Gilles.)
Post: #4
RE: Creating matrix on HP 50g
(04-29-2015 01:01 PM)Cancuino Wrote:  Hi, I'm programming something where I need to create a 6x6 matrix, I have all the 36 values that I must fill the matrix with. Which is the best command for this?.

Thank you.

Hi there many ways for this. in addition of Tuagal post :

1/ If you know the elements of the matrix, just enter it in your program :
[[ 11 21 ] [ 12 22]]

2/ Create a 6x6 identity matrix :
6 IDN

3/ If each element is a function of I J (Line, Column)
6 6 « 10 * + » LCXM @ Create a 6x6 matrix [[ 11 21 31 ...] [12 22 32 ...] ... ]

4/ If your matrice is a variable, for example M you can use this syntax
99 'M(3,5)' STO
`M(I,J)` returns immediatly the value of I columns J row of M
Slower but more readable in many cases than the PUT and GET command

Etc.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Creating matrix on HP 50g - Cancuino - 04-29-2015, 01:01 PM
RE: Creating matrix on HP 50g - Tugdual - 04-29-2015, 01:49 PM
RE: Creating matrix on HP 50g - Cancuino - 04-29-2015, 01:59 PM
RE: Creating matrix on HP 50g - Gilles - 04-29-2015 02:26 PM
RE: Creating matrix on HP 50g - Cancuino - 04-29-2015, 05:00 PM
RE: Creating matrix on HP 50g - Cancuino - 04-29-2015, 05:47 PM
RE: Creating matrix on HP 50g - Tugdual - 04-29-2015, 06:29 PM
RE: Creating matrix on HP 50g - Cancuino - 04-29-2015, 07:09 PM
RE: Creating matrix on HP 50g - Tugdual - 04-29-2015, 08:07 PM
RE: Creating matrix on HP 50g - Cancuino - 04-29-2015, 08:34 PM



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