結果 : bisection method in code