Add a condition that the approximated root must lie within a radius r of the initial guess x0