A 2nd degree equation ( quadratic ) solver made using JavaScript.
A second degree equation is a mathematical phrase with a variable that is raised to the power of 2. Unlike a 1st degree equation, x will have two real values ( R ). The general form for a 2nd degree equation is:
Where a, b and c are the coefficients for the equation and follow these rules:
The Discriminant is a expression represented by the Greek letter Delta ( Δ ) that shows which of the three cases apply for the equation:
If Δ is > than 0 => two distinct real roots ( x1,2 ).
If Δ is = to 0 => one distinct real root ( x1 = x2 ).
If Δ is negativ ( Δ < 0 ) => zero real roots ( ∅ ).