bisection function

Root finding by bisection