Steps of the bisection method algorithm
1️⃣ Start with an interval [a, b] containing a root
2️⃣ Calculate the midpoint c = (a + b) / 2
3️⃣ If f(a) and f(c) have opposite signs, update b = c
4️⃣ If f(b) and f(c) have opposite signs, update a = c
5️⃣ Repeat steps 2-4 until the interval is sufficiently small