Calculator for the quadratic equation:
0 = ax2 + bx + c
a = | b = | c = |
The above program will calculate solutions to the quadratic equation.
These values for x are calculated using the solution to the quadratic equation, which is:
The derivation of the above equation is available here.
Of course, the coefficient 'a' must be non-zero for this to be a quadratic equation. Solutions are only calculated when a is non-zero.
Click this button to see the actual JavaScript code that executes on this page: