Scientific Calculator

(public) Tomatoes999/Quadratic

By Tomatoes999 Tomato Master

The quadratic formula when ax^2+bx+c=0.

Tagged: aops quadratic

quadratic=function(a,b,c){
  var answer1=(-b+sqrt(b^2-4*a*c))/(2*a);
  var answer2=(-b-sqrt(b^2-4*a*c))/(2*a);
  [answer1,answer2];
}

spam? | offensive?

1 Comment

Sign in to leave a comment