A tweet-sized, fork-to-play, community-curated collection of JavaScript.
-b ± Math.sqrt(Math.pow(b,2) - 4*a*c)
-------------------------------------
2*a
var solve = function(a,b,c){c=Math.sqrt(b*b-4*a*c);return[(c-b)/(2*a),(-b-c)/(2*a)]};
solve(1,2,-8); // returns [2,-4]
Thanks, atk!
Never thought that.