Skip to content
Browse files

Fix to actually select the correct equation

Test plan: as before - check a few example exercises

Auditor: alpert
  • Loading branch information...
1 parent 086ffe6 commit a3c652333ad59db6dc7762474ae3001c3102f7f4 @petercollingridge petercollingridge committed Mar 19, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 exercises/simplifying_rational_expressions_2.html
View
2 exercises/simplifying_rational_expressions_2.html
@@ -99,7 +99,7 @@
<var id="NEGNUMERATORSOL">expr(["+", ["*", -COEFFICIENT1, X], -CONSTANT1])</var>
<var id="NEGDENOMINATORSOL">expr(["+", ["*", -COEFFICIENT2, X], -CONSTANT2])</var>
<var id="REGEX">(function() {
- if (COEFFICIENT2 < 0 || (COEFFICIENT2 === 0 && CONSTANT1 < 0)) {
+ if (COEFFICIENT2 &lt; 0 || (COEFFICIENT2 === 0 && CONSTANT2 &lt; 0)) {
return [getExpressionRegex(-COEFFICIENT1, X, -CONSTANT1),
getExpressionRegex(-COEFFICIENT2, X, -CONSTANT2)];
} else {

0 comments on commit a3c6523

Please sign in to comment.
Something went wrong with that request. Please try again.