Permalink
Browse files

Don't mark graphing_linear_equations wrong until points are moved

Reviewers: kamens

Reviewed By: kamens

Differential Revision: http://phabricator.khanacademy.org/D421
  • Loading branch information...
1 parent 3530641 commit a8449cc98ec608cbf27134523ec9c8220117bdc7 @beneater beneater committed Jul 18, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 exercises/graphing_linear_equations.html
@@ -319,6 +319,9 @@
</div>
<div class="guess"> [ graph.pointA.coord, graph.pointB.coord ] </div>
<div class="validator-function">
+ if (_.isEqual(guess, [[-5, 5], [5, 5]])) {
+ return "";
+ }
var slope = ( guess[1][1] - guess[0][1] ) / ( guess[1][0] - guess[0][0] );
var yint = slope * ( 0 - guess[0][0] ) + guess[0][1];
return abs( SLOPE - slope ) &lt; 0.001 &amp;&amp; abs( YINT - yint ) &lt; 0.001;

0 comments on commit a8449cc

Please sign in to comment.