| Line 24: |
Line 24: |
| | \vdots & \ddots & \vdots \\ | | \vdots & \ddots & \vdots \\ |
| | a_{m1}+b_{m1} & a_{m2}+b_{m2}& \cdots & a_{mn}+b_{mn} | | a_{m1}+b_{m1} & a_{m2}+b_{m2}& \cdots & a_{mn}+b_{mn} |
| − | \end{bmatrix} | + | \end{bmatrix}</math> |
| | *Here <matrix>afactor</math> constant value is multiplied with each values in matrix A and <math>bfactor</math> constant value is multiplied with each values in matrix B. | | *Here <matrix>afactor</math> constant value is multiplied with each values in matrix A and <math>bfactor</math> constant value is multiplied with each values in matrix B. |
| | *Then it is doing the matrix addition with all the corresponding entries. | | *Then it is doing the matrix addition with all the corresponding entries. |
| | *If the factor values are not given then it is doing usual matrix addition with the factor values as 1. | | *If the factor values are not given then it is doing usual matrix addition with the factor values as 1. |
| | + | |
| | + | ==Examples== |
| | + | 1. MATRIXADD([[10,14,17],[6,-3,-5],[21,-34,76]],[[22,25,33],[-17,19,20],[26,35,-21]]) |
| | + | {| class="wikitable" |
| | + | |- |
| | + | | 32 || 39 || 50 |
| | + | |- |
| | + | | -11 || 16 || 15 |
| | + | |- |
| | + | | 47 || 1 || 55 |
| | + | |} |
| | + | 2. MATRIXADD([[4,5,10],[-12,34,31]],[[17,18,27],[29,-24,31]]) |
| | + | {| class="wikitable" |
| | + | |- |
| | + | | 21 || 23 || 37 |
| | + | |- |
| | + | | 17 || 10 || 62 |
| | + | |} |
| | + | |
| | + | ==See Also== |
| | + | *[[Manuals/calci/MATRIXMULTIPLY| MATRIXMULTIPLY|]] |
| | + | *[[Manuals/calci/MATRIXOPERATORS| MATRIXOPERATORS]] |
| | + | *[[Manuals/calci/MATRIXMOD| MATRIXMOD|]] |
| | + | |
| | + | ==References== |
| | + | *[https://en.wikipedia.org/wiki/Matrix_addition Matrix addition] |
| | + | |
| | + | |
| | + | *[[Z_API_Functions | List of Main Z Functions]] |
| | + | *[[ Z3 | Z3 home ]] |