<exercise label="fitb-find-row-echelon">
<setup>
<jsimports>
<jslibrary source="code/btm-matrix-library.js" />
</jsimports>
<setupScript>
<![CDATA[
v.baseMatrix = randomMatrix(RNG, 3, 3, 2, true);
v.rrefMatrix = rrefMatrix(v.baseMatrix);
]]>
</setupScript>
</setup>
<statement>
<p>
Consider the matrix defined by
<md>
A = <eval obj="baseMatrix"/>
</md>
Find the reduced row echelon form of <m>A</m>.
</p>
<p>
<m>\mathrm{rref}(A) = </m> <fillin name="rref" parser="parseMatrix"/>
</p>
<p>
A matrix is entered by listing the rows separated by commas between brackets [ and ], and for each row listing entries separated by commas between additional brackets.
The matrix
<m>\begin{bmatrix} 1 \amp 3 \amp 5 \\ 2 \amp 4 \amp 6 \end{bmatrix}</m>
would be entered as <c>[ [1, 3, 5], [2, 4, 6] ]</c>.
</p>
</statement>
<evaluation>
<evaluate name="rref">
<test correct="yes">
<jscmp>
testMatrixEqual(ans, rrefMatrix)
</jscmp>
</test>
</evaluate>
</evaluation>
</exercise>