# LowestTerms: Answer test results

This page exposes the results of running answer tests on STACK test cases.  This page is automatically generated from the STACK unit tests and is designed to show question authors what answer tests actually do.  This includes cases where answer tests currentl fail, which gives a negative expected mark.  Comments and further test cases are very welcome.



<h2>LowestTerms</h2><div class="no-overflow"><table class="flexible table table-striped table-hover generaltable generalbox stacktestsuite"><thead><tr><th class="header c0" scope="col">Test<div class="commands"></div></th><th class="header c1" scope="col">?<div class="commands"></div></th><th class="header c2" scope="col">Student response<div class="commands"></div></th><th class="header c3" scope="col">Teacher answer<div class="commands"></div></th><th class="header c4" scope="col">Opt<div class="commands"></div></th><th class="header c5" scope="col">Mark<div class="commands"></div></th><th class="header c6" scope="col">Answer note<div class="commands"></div></th>
</tr></thead><tbody>
<tr class="expectedfail">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:orange;"><i class="fa fa-adjust"></i></span></td>
  <td class="cell c2"><pre>1/0</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">-1</td>
  <td class="cell c6">ATLowestTerms_STACKERROR_SAns.</td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Mix of floats and rational numbers</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>0.5</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>0.33</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>2/4</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Negative numbers</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-1/3</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/-3</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-2/4</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{-2}{4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>2/-4</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{-4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-1/-3</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{-1}{-3} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>-2/-4</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{-2}{-4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Polynomials</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>x+1/3</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>x+2/6</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{6} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>2*x/4+2/6</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{6} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>2/4*x+2/6</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{4} , \frac{2}{6} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>x-1/-4</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{-1}{-4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Trig functions</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>cos(x)</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>cos(3/6*x)</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{3}{6} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Matrices</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>matrix([1,2/4],[2,3])</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Equations</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>x=1/2</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>3/9=x</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{3}{9} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Use predicate lowesttermsp</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>x^2/x</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(2*x)/(4*t)</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>(2/4)*(x^2/t)</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>x^(2/4)</pre></td>
  <td class="cell c3"><pre>0</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_entries.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">The following terms in your answer are not in lowest terms. <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \frac{2}{4} \right] \]</span></span> Please try again.</td></td>
</tr>
<tr class="notes">
  <td class="cell c0"><td colspan="6">Need to rationalize demoninator</td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>sqrt(3)/3</pre></td>
  <td class="cell c3"><pre>sqrt(3)/3</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">1</td>
  <td class="cell c6"></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/sqrt(3)</pre></td>
  <td class="cell c3"><pre>sqrt(3)/3</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_not_rat.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">You must clear the following from the denominator of your fraction: <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \sqrt{3} \right] \]</span></span></td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/(1-sqrt(2))</pre></td>
  <td class="cell c3"><pre>1/(1-sqrt(2))</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_not_rat.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">You must clear the following from the denominator of your fraction: <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \sqrt{2} \right] \]</span></span></td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/(1+i)</pre></td>
  <td class="cell c3"><pre>(1-i)/2</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_not_rat.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">You must clear the following from the denominator of your fraction: <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \mathrm{i} \right] \]</span></span></td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1+2/sqrt(3)</pre></td>
  <td class="cell c3"><pre>(2*sqrt(3)+3)/3</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_not_rat.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">You must clear the following from the denominator of your fraction: <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ \sqrt{3} \right] \]</span></span></td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/(1+1/root(3,2))</pre></td>
  <td class="cell c3"><pre>sqrt(3)/(sqrt(3)+1)</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_not_rat.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">You must clear the following from the denominator of your fraction: <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ 3^{\frac{1}{2}} \right] \]</span></span></td></td>
</tr>
<tr class="pass">
  <td class="cell c0">LowestTerms</td>
  <td class="cell c1"><span style="color:green;"><i class="fa fa-check"></i></span></td>
  <td class="cell c2"><pre>1/(1+1/root(2,3))</pre></td>
  <td class="cell c3"><pre>1/(1+1/root(2,3))</pre></td>
  <td class="cell c4"></td>
  <td class="cell c5">0</td>
  <td class="cell c6">ATLowestTerms_not_rat.</td>
</tr>
<tr class="pass">
  <td class="cell c0"><td colspan="2"></td></td>
  <td class="cell c1"><td colspan="4">You must clear the following from the denominator of your fraction: <span class="filter_mathjaxloader_equation"><span class="nolink">\[\left[ 2^{\frac{1}{3}} \right] \]</span></span></td></td>
</tr></tbody></table></div>