Quadratic equation in steps

Split the quadratic formula into named lines instead of entering one long expression. This example solves 3x² − 4x − 10 = 0.

How it works

  1. Enter the coefficients a, b, and c.
  2. Calculate the discriminant once and reuse it in both root lines.
  3. Compare rootPlus and rootMinus as the two possible solutions.

Change one coefficient to explore how the discriminant changes the number and type of roots.

Back to all Calcul.io examples