Computes the real roots of the quadratic equation ax2+bx+c=0 using the quadratic formula.
The formula is:
Conditions and cases:
x1; x2 left blank).Inputs
| Parameter | Default units | Description |
|---|---|---|
| a | — | Quadratic coefficient in ax2+bx+c=0 |
| b | — | Linear coefficient |
| c | — | Constant term |
Outputs
| Parameter | Default units | Description |
|---|---|---|
| x1 | — | First real root (or the single root when Δ=0) |
| x2 | — | Second real root (blank when Δ≤0) |