Solve equation ax² + bx + c = 0
x = (-b ± √(b² − 4ac)) / 2a
D = b² − 4ac
x = -b / 2a
A quadratic equation is a polynomial equation of degree two in the form ax² + bx + c = 0.
The discriminant determines the type of roots. If positive there are two real roots, if zero one root and if negative complex roots.