Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
82 lines (75 sloc) 2.5 KB
<!DOCTYPE html>
<html data-require="math kmatrix">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Determinant of a 3x3 matrix</title>
<script data-main="../local-only/main.js" src="../local-only/require.js"></script>
</head>
<body>
<div class="exercise">
<div class="vars">
<var id="MAT">makeMatrix(randRange(-2, 5, DIM, DIM))</var>
<var id="SOLN">matrixDet(MAT)</var>
<var id="PRETTY_MAT_ID">"\\textbf " + randFromArray("ABCDEF")</var>
</div>
<div class="problem">
<p>
<code><var>PRETTY_MAT_ID</var> = <var>printSimpleMatrix(MAT)</var></code>
</p>
</div>
<p class="question">
What is the determinant of <code><var>PRETTY_MAT_ID</var></code>?
</p>
<div class="solution">
<span class="sol"><var>SOLN</var></span>
</div>
<div class="problems">
<div>
<div class="vars" data-apply="prependVars">
<var id="DIM">3</var>
<var id="HINT_MAT">makeMatrix([["a","b","c"],["d","e","f"],["g","h","i"]])</var>
</div>
<div class="hints">
<div>
<p>The determinant of any 3x3 matrix can be computed the following way:</p>
<p>
<code>
<var>printSimpleMatrixDet(HINT_MAT)</var>
= <var>matrix3x3DetHint(HINT_MAT, true)</var>
</code>
</p>
</div>
<div>
<p>
<code>
= <var>matrix3x3DetHint(HINT_MAT)</var>
</code>
</p>
</div>
<div>
<p>In this specific case,</p>
<p>
<code>
<var>printSimpleMatrixDet(MAT)</var>
= <var>matrix3x3DetHint(MAT, true)</var>
</code>
</p>
</div>
<div>
<p>
<code>
= <var>matrix3x3DetHint(MAT)</var>
</code>
</p>
</div>
<div>
<code>
= <var>SOLN</var>
</code>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Something went wrong with that request. Please try again.