randRange(-2, 4, ROWS, COLS)
randFromArray([-1, 1]) * (rand(4) === 0 ? randRange(1, 3) / 4 : randRange(2, 5))
decimalFraction(SCALAR, true)
"\\times"
deepZipWith(2, function(a) {
return a * SCALAR;
}, MAT_A)
matrixPad(SOLN_MAT, 3, 3)
BLUE
GREEN
PINK
printSimpleMatrix(MAT_A, MAT_A_COLOR)
printMatrix(function(a) {
var s = colorMarkup(SCALAR_TEXT, SCALAR_COLOR);
var b = colorMarkup(a, MAT_A_COLOR);
return s + OPERATION + b;
}, MAT_A)
printFractionMatrix(SOLN_MAT, SOLN_MAT_COLOR)
\Large{
\color{SCALAR_COLOR}{SCALAR_TEXT}
OPERATION
PRETTY_MAT_A = {?}
}
To multiply a matrix by a number, multiply each item of the matrix by the number.
\Large{PRETTY_HINT_MAT}
Now, simplify:
\Large{PRETTY_SOLN_MAT}