# Khan/khan-exercises

Remove unneeded KhanUtils

1 parent 0184536 commit 42dced0433b180f48978eb28671fee44c6b76971 joelburget committed Aug 27, 2012
 @@ -87,20 +87,20 @@ return ""; } - var correct = _(KhanUtil.points).map(function(x) { - return KhanUtil.roundTo(2, KhanUtil.ddx(x)); + var correct = _(points).map(function(x) { + return roundTo(2, ddx(x)); }); return guess.join() === correct.join();
_(guess).each(function(coordY, i) { - KhanUtil.setSlope(i, coordY); + setSlope(i, coordY); }); - var correct = _(KhanUtil.points).map(function(x) { - return KhanUtil.roundTo(2, KhanUtil.ddx(x)); + var correct = _(points).map(function(x) { + return roundTo(2, ddx(x)); }); if (guess.join() === correct.join()) { - KhanUtil.revealDerivative(0); + revealDerivative(0); }
 @@ -53,7 +53,7 @@ fixed: true, extendLine: true, normalStyle: { - stroke: KhanUtil.ORANGE, + stroke: ORANGE, "stroke-width": 2 } });
 @@ -58,15 +58,15 @@

- style({stroke: KhanUtil.ORANGE, strokeWidth: 2.0}); + style({stroke: ORANGE, strokeWidth: 2.0}); line([REAL, LOWER_BOUND - 1], [REAL, UPPER_BOUND + 1]); movablePoint.visibleShape.toFront();

The vertical orange line represents all complex numbers with real part REAL (including REP).

- style({stroke: KhanUtil.BLUE, strokeWidth: 2.0}); + style({stroke: BLUE, strokeWidth: 2.0}); line([LOWER_BOUND - 1, IMAG], [UPPER_BOUND + 1, IMAG]); movablePoint.visibleShape.toFront();