randRange(-2, 4, ROWS, COLS) randRange(-2, 4, ROWS, COLS) randFromArray(["+", "-"]) deepZipWith(2, function(a, b) { if (OPERATION === "+") { return a + b; } else { return a - b; } }, MAT_A, MAT_B) BLUE GREEN PINK printMatrix(MAT_A, MAT_A_COLOR) printMatrix(MAT_B, MAT_B_COLOR) printMatrix(MAT_A, MAT_A_COLOR, MAT_B, MAT_B_COLOR, OPERATION) printMatrix(SOLN_MAT, SOLN_MAT_COLOR)
\Large{ PRETTY_MAT_A + OPERATION + PRETTY_MAT_B = {?} }

To find the sum difference of two matrices, add subtract the corresponding items between each matrix.

\Large{PRETTY_HINT_MAT}

Now, simplify:

\Large{PRETTY_SOLN_MAT}

elem

2 2
2 3
3 1
3 2