A matrix is defined as row x column. For instance, a 2 x 3 matrix has 2 rows and 3 columns.
Matrix multiplication must follow the rule where the column of the first matrix must match numerically to the row of the second matrix. If not, the matrix multiplication cannot proceed.
In other words, p must equal p ( p = p ), in both the n x p matrix (your first matrix) and the p x m matrix (your second matrix). The matrix multiplication answer (the product) will have n rows and m columns so it will be a n x m matrix.
n x p * p x m = n x m
Before beginning, here are some important things to note:
If one (or more) of the n, p, p, or m text boxes is left empty, the matrix multiplication cannot proceed.
If n, p, p, and/or m are equal to 0, the matrix multiplication cannot proceed.
My apologies, but the current matrix multiplier will not work with rows or columns greater than 10.
For n, p, p and m, they must all be positive integers, or the matrix multiplication cannot proceed.
If you note any bugs or other issues with this matrix multiplier, please contact firstname.lastname@example.org. Thank you.
Steps to use the matrix multiplier
Enter the n, p, p, and m values, making sure both p values are exactly the same.
Click the 'Submit n, p, p, m' button (or click 'Clear Text Boxes' if you need to redo).
You will now see the text boxes to enter the numbers for each matrix you want to multiply together. Enter those numbers carefully, making sure to double check that they are correct.
Enter fractions as decimal numbers.
Radical numbers, like the square root of 2, should be a decimal number.
Negative numbers are fine to enter.
Use the tab key to easily navigate through all the text boxes.
Click the 'Submit Matrices' button.
You will now see all the numbers you entered directly below each matrix.
Click the 'Multiply Matrices' button.
The answer to your matrix multiplication will now appear in another set of text boxes.
'Reload Program' will clear all the boxes and bring the page back to its original state.