Bisection Method Python Formula