| Line 1: |
Line 1: |
| − | <div style="font-size:30px">'''MMULT(a1,A2)'''</div><br/> | + | <div style="font-size:30px">'''MMULT(a1,a2)'''</div><br/> |
| − | *where a1 and a2 the array if two matrices | + | *where <math>a1</math> and <math>a2</math> are the array if two matrices |
| | | | |
| | ==Description== | | ==Description== |
| − | *This function gives product of two matrices.Matrix multiplication is of two types:Type1: A scalar (a constant) is multiplied with the each element of the matrix. | + | *This function gives product of two matrices. |
| − | *Type 2: multiplication of two matrices. We can do the matrix multiplication when the number of columns in the first matrix equals the number of rows in the second matrix.
| + | *Matrix multiplication is of two types: |
| − | *For e.g. 4x2 matrix can multiply with 2x3. The matrix product of two arrays a and b is xij= summation of k=1 to n aik.bkj, where i ts the row number and j is the colun number. | + | Type 1: A scalar (a constant) is multiplied with the each element of the matrix. |
| | + | Type 2: Multiplication of two matrices. |
| | + | *We can do the matrix multiplication when the number of columns in the first matrix equals the number of rows in the second matrix. |
| | + | *For e.g. 4x2 matrix can multiply with 2x3. The matrix product of two arrays <math>a</math> and <math>b</math> is <math>xij= \sum_{k=1}^n aik.bkj</math>, where <math>i</math> is the row number and <math>j</math> is the column number. |
| | *i.e Multiply the elements of each row of 1st matrix by elements of each column of 2nd matrix. | | *i.e Multiply the elements of each row of 1st matrix by elements of each column of 2nd matrix. |
| | *So the resultant matrix of the order is:Rows of 1st matrix × Columns of 2nd. For e.g . | | *So the resultant matrix of the order is:Rows of 1st matrix × Columns of 2nd. For e.g . |