Approximate solution of equation by dichotomy

Approximate solution of equation by dichotomy

Dichotomy is the method of taking the middle value
For example, if you don't know the solution of an equation, but you know that the solution must be between 0 and 100, take 50 for trial calculation, and then verify whether the solution is between 0 and 50 or between 50 and 100. After determining, take the intermediate value and finally approach the exact solution