bisection method is based upon optimal root redcued costs IVT matrix reduction therorem code example
Example: bisection method
based on IVT, c=(a+b)/2, if(fa*fc<0) b=c else a=c
based on IVT, c=(a+b)/2, if(fa*fc<0) b=c else a=c