Quadratics
The Discriminant
The discriminant b²-4ac of ax²+bx+c=0 determines the number of real roots: positive means two real roots, zero means one repeated root, negative means no real roots.
Example
discriminant
Compute disc=b²-4ac. Its sign classifies the quadratic before solving: two real roots (disc>0), one repeated (disc=0), or no real roots (disc<0).