How it works
Write the equation in the form ax² + bx + c = 0 and enter the three coefficients. The discriminant decides the kind of answer: positive gives two different real roots, zero gives one repeated root, and negative gives a pair of complex roots of the form p ± qi. The roots are computed in a numerically stable way, so equations with very different coefficient sizes keep their accuracy.