Quadratic with two real roots
x² − 5x + 6 = 0 has roots at x = 2 and x = 3. This is a clean example to confirm residual behaviour.
- Mode
- Quadratic
- Quadratic a
- 1
- Quadratic b
- -5
- Quadratic c
- 6
The solver returns x₁ = 3, x₂ = 2, discriminant = 1, and a residual near zero for both roots.
After running this example, try changing c to 7 to see what happens when the discriminant turns negative.
2×2 linear system
2x + y = 5 and x − y = 1 is a classic simultaneous equation pair with a unique solution.
- Mode
- 2×2 System
- System a1
- 2
- System b1
- 1
- System c1
- 5
- System a2
- 1
- System b2
- -1
- System c2
- 1
The solver returns x = 2, y = 1 with residuals near zero for both equations.
Change a2 to 2 and b2 to 0.5 to create a singular system and observe the determinant-zero message.