The general form of a quadratic equation is

.
A quadratic equation with real coefficients can have none, one or two distinct real roots.
To determine the number of roots we use the
discriminant:
b2-4ac
a) b2-4ac > 0 The equation has two solutions.
b) b2-4ac < 0 The equation has no solution.
c) b2-4ac = 0 The equation has one solution.
(If the
discriminant is negative, the roots are
complex, and this page can not display the complex number. The output will be "None")