# Khan/khan-exercises

I got something to draw! A chart is showing up now, rendering content…

… from an exercise. It's not, in any way, ready to be used in a more general sense.
1 parent f1b4c38 commit d4e52bd02c75f41541034985d624747ac9b8cc8e jeresig committed May 17, 2011
Showing with 900 additions and 0 deletions.
1. +58 −0 exercises/limits_1.html
2. +830 −0 utils/graph.js
3. +12 −0 utils/math.js
 @@ -0,0 +1,58 @@ + + + + Limits 1 + + +
+
+ nonZeroRandomInt(-3, 3) + floor(sqrt(abs(10 / q_lcoef))) + nonZeroRandomInt(-1 * edge, edge) + q_lcoef + 'x^2' + cleanMath('(x + ' + l_cons + ')') + function(x) { + return truncate_to_max(q_lcoef * Math.pow(x, 2), 4); + } + -1 * l_cons + curFunc(a) + limtoa + limtoa + (function(){ + RaphaelWrapper.init(400, 400); + RaphaelWrapper.drawPlane( -10, 10, -10, 10 ) + + present.fontsize = "15"; + present.fontfamily = "sans-serif"; + present.fontstyle = "bold"; + + present.stroke = "blue"; + + present.plot('(' + quadratic + line + ')/' + line); + present.ASdot([a, limtoa], 4, "black", "white"); + })() +
+ +
+
+
+ +
+

+

limtoa

+
+
• 0
• +
• nonZeroRandomInt(-3, 3)
• +
• nonZeroRandomInt(-3, 3)
• +
• q_lcoef
• +
• l_cons
• +
• curFunc(0)
• +
• Does not exist.
• +
+
+
+
+ +
+ +