This python alghoritm is meant to automate the mathematical bisection method.
Selecting "info" option in program's menu, will show you how to write the different mathematical expressions in the function. There are examples on how to write log, sin, cos, tan, exponentiation and square root functions.