Solve a quadratic equation and report real or complex roots from its discriminant.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The discriminant b²−4ac determines the case: positive gives two real roots, zero gives a repeated root, and negative gives a conjugate complex pair. Roots use the quadratic formula and are rounded for display.
1, -5, 6
Equation: 1x² + -5x + 6 = 0 Discriminant: 1 Two real roots: x₁ = 3 x₂ = 2
Math lessons find parabola intercepts, projectile equations find times, and engineering models test real solutions.