Computes the real roots of the quadratic equation $ ax^2 + bx + c = 0 $ using the quadratic formula.
The formula is: $$ \Delta = b^2 - 4ac,\qquad x=\frac{-b\pm\sqrt{\Delta}}{2a} $$
Conditions and cases:
x1; x2 left blank).Inputs
Parameter | Default units | Description |
|---|---|---|
a | — | Quadratic coefficient in $ax^2+bx+c=0$ |
b | — | Linear coefficient |
c | — | Constant term |
Outputs
Parameter | Default units | Description |
|---|---|---|
x1 | — | First real root (or the single root when $\Delta=0$) |
x2 | — | Second real root (blank when $\Delta\le 0$) |