Optimization Using Root Finding Algorithms In Computer