For a ≠ 0, define the discriminant Δ = b² − 4ac. The quadratic formula is:
x = (−b ± √Δ) ÷ (2a)
The ± sign gives the two branches. When Δ = 0, they coincide. When Δ < 0, the roots can be written as −b/(2a) ± i√(−Δ)/(2|a|), with a positive imaginary magnitude and opposite signs.
When a = 0 and b ≠ 0, solve the linear equation using x = −c/b. If a = b = 0 and c = 0, every x is a solution. If a = b = 0 but c is nonzero, there is no solution. The discriminant is reported as not applicable in these cases.
The discriminant and its sign are calculated exactly from your decimal coefficients. Rational roots are kept as exact fractions and rounded only for display. Irrational roots use a separate 120-significant-digit calculation; for two real roots, a stable form of the quadratic formula preserves a small root when the other root is very large.
Results show 6 decimal places by default; 0, 2, 4, 6, or 10 are available. Exact halfway values round away from zero. ≈ marks a rounded result, including every finite decimal display of an irrational root. For complex roots, it applies if either displayed component is approximate. Negative zero is displayed as zero.
Two distinct roots can look equal after display rounding. A nonzero discriminant, root, or component can also look like zero at the selected precision. A note flags those cases; the classification always uses the exact, unrounded discriminant. Changing precision does not solve a new equation or add another history entry.
Reference: OpenStax — Quadratic Equations explains the quadratic formula, discriminant, and real and complex solutions.