hp40g+.book Page 6 Friday, December 9, 2005 1:03 AM
To store one element
In HOME, enter, value matrixname(row,column). For example, to change the element in the first row and second column of M5 to 728, then display the resulting matrix:
728
M512
M5 .
An attempt to store an element to a row or column beyond the size of the matrix results in an error message.
Matrix arithmeticYou can use the arithmetic functions (+,
For the next examples, store [[1,2],[3,4]] into M1 and [[5,6],[7,8]] into M2.
Example | 1. Create the first matrix. |
MATRIX
1 2
3 4
2.Create the second matrix.
MATRIX
5 6 7
8
3.Add the matrices that you created.
|
| Matrices | |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|