formula for error of bisection method code example Example: formula for error of bisection method error_x2 = error_x1 / 2