# Addition And Subtraction - HP 50g User Manual

Graphing calculator.

Consider a pair of matrices A = [a
subtraction of these two matrices is only possible if they have the same number
of rows and columns. The resulting matrix, C = A
= a
b
. Some examples in ALG mode are shown below using the matrices
ij
ij
stored above (e.g., @A22@ + @B22@)
In RPN mode, the steps to follow are:
22 ` B22`+
23 ` B23`+
32 ` B32`+
Translating the ALG examples to RPN is straightforward, as illustrated here. The
remaining examples of matrix operations will be performed in ALG mode only.
Multiplication
There are numerous multiplication operations that involve matrices. These are
described next.
Multiplication by a scalar
Multiplication of the matrix A = [a
kA = [c
]
= [ka
ij
m n
the operation -A =(-1)A = [-a
matrix by a scalar are shown below.
ij
]
. In particular, the negative of a matrix is defined by
ij
m n
]
ij
m n
]
and B = [b
ij
m n
22 ` B22`-
23 ` B23`-
32 ` B32`-
]
by a scalar k results in the matrix C =
m n
. Some examples of multiplication of a
]
ij
m n
B = [c
]
has elements c
ij
m n
ij
Page 11-2