Changes

Jump to navigation Jump to search
Created page with "<div style="font-size:30px">'''MATRIXPLUS (a,b,ConsiderUnits)'''</div><br/> *<math> a </math> and <math>b</math> are any two matrices. ==Description== *This function calculat..."
<div style="font-size:30px">'''MATRIXPLUS (a,b,ConsiderUnits)'''</div><br/>
*<math> a </math> and <math>b</math> are any two matrices.

==Description==
*This function calculates the addition of the two matrices.
*In <math>MATRIXPLUS (a,b,ConsiderUnits)</math>,<math>a</math> and <math>b</math> are two matrices.
*Matrix addition is the basic operation of adding two matrices with the corresponding entries.
*Two matrices must have an equal number of rows and columns.
*The sum 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>

==Examples==
1. MATRIXPLUS([2,3,4;5,6,7],[9,12,43;20,26,87])
{| class="wikitable"
|-
| 11 || 15 || 47
|-
| 25 || 32 || 94
|}
2. MATRIXPLUS([-45,30.4;12,65;98,-44],[92,34;-87,26;77,56])
{| class="wikitable"
|-
| 47 || 64.4
|-
| -75 || 91
|-
| 175 || 12
|}

==See Also==
*[[Manuals/calci/MATRIXMULTIPLY| MATRIXMULTIPLY]]
*[[Manuals/calci/MATRIXOPERATORS| MATRIXOPERATORS]]
*[[Manuals/calci/MATRIXADD| MATRIXADD ]]

==References==
*[https://en.wikipedia.org/wiki/Matrix_addition Matrix addition]


*[[Z_API_Functions | List of Main Z Functions]]
*[[ Z3 | Z3 home ]]
writer
6,694

edits

Navigation menu