Optimization Using Root Finding Algorithms And Flowcharts