Control plane (p, q): blue = three real roots, amber = one real root, white = fold curve
The cubic f(x) with its roots; right: complex plane

Cubic Equation Root Map: Cardano Discriminant Fold and Complex Roots

Drive the cubic x^3 + p x + q = 0 around a loop and watch its real roots as pearl balls where a vertical line meets the cusp surface. Cross the fold line and two roots merge and turn complex; circle the cusp point and see a triple root. Live Cardano and trigonometric roots, discriminant, Vieta sums, sensitivity and built-in numerical checks. Surface, plinth and frame modelled in Blender.

Made with 🟠 Blender