Python · Numerical problems for engineers

Bisection

No formula solves x³ − x − 2 = 0 neatly, but a loop that keeps halving an interval pins its solution down.