1,487 bytes added
, 22:51, 20 June 2017
<div style="font-size:30px">'''MATRIXMINUS (a,b,ConsiderUnits)'''</div><br/>
*<math>a</math> and <math>b</math> are any two matrices.
==Description==
*This function calculates the subtraction of the two matrices.
*In <math>MATRIXMINUS(a,b)</math>,<math>a</math> and <math>b</math> are any two matrices.
*Minus is one of the four basic operations of arithmetic.
*Minus operation is the opposite operation of Add.
*Matrix minus is the basic operation of subtracting two matrices with the corresponding entries.
*Two matrices must have an equal number of rows and columns.
*The minus of matrices A and B is denoted by <math>A-B=
\begin{bmatrix}
a_{11} & a_{12}&\cdots & a_{1n} \\
a_{21}& a_{22}& \cdots & a_{2n} \\
\vdots & \ddots & \vdots \\
a_{m1} & a_{m2}& \cdots & a_{mn}
\end{bmatrix} -\begin{bmatrix}
b_{11} & b_{12}&\cdots & b_{1n} \\
b_{21}& b_{22}& \cdots & b_{2n} \\
\vdots & \ddots & \vdots \\
b_{m1} & b_{m2}& \cdots & b_{mn}
\end{bmatrix} = \begin{bmatrix}
a_{11}-b_{11} & a_{12}-b_{12}&\cdots & a_{1n}-b_{1n} \\
a_{21}-b_{21}& a_{22}-b_{22}& \cdots & a_{2n}-b_{2n} \\
\vdots & \ddots & \vdots \\
a_{m1}-b_{m1} & a_{m2}-b_{m2}& \cdots & a_{mn}-b_{mn}
\end{bmatrix}</math>
*Suppose the number of rows in the first matrix is more than the second matrix,this function will return the extra row entries with the same number.
*Suppose the number of rows in the second matrix is more than the first matrix ,the extra row values of the second matrix will be ignored.