How to use
- Set the number of rows and columns of Matrix A and Matrix B (1 to 10 each), then type the entries. Fractions such as 1/2 are allowed and an empty box counts as 0.
- Press an operation: A + B, A - B or AB for both matrices, or transpose, determinant, inverse, a power or a multiple for one of them.
- Read the result under the grids. Switch between decimals and exact fractions, or copy the result into A or B to chain the next step.
- Use Clear, All 0, All 1 or Random to fill a grid quickly, and Swap to exchange A and B.
Formula
Sum and difference are taken entry by entry and need equal sizes. AB needs columns of A = rows of B, and its entry in row i, column j is the sum of A(i,k) x B(k,j). The transpose swaps rows and columns. The determinant and inverse need a square matrix; the inverse exists only when the determinant is not 0. A power A^k is A multiplied by itself k times.Example
For A = [[1, 2], [3, 4]], the determinant is 1 x 4 - 2 x 3 = -2 and the inverse is [[-2, 1], [3/2, -1/2]]. With B = [[5, 6], [7, 8]], AB = [[19, 22], [43, 50]].
All arithmetic uses exact fractions, so an inverse or a determinant never carries rounding errors; decimals are only the way the answer is shown (ten significant digits). The power is limited to 1000. Matrices are up to 10 x 10.