This is an implementation of bissection method to find roots in a given interval.
I intended to practice and memorize the algorithm. And which way is better than doing it by hand? You can implement it by specifing the mathematical function in f and the interval in interval.
I also do not intend to make it far than this, since there are many algorithms worldwide, I will not change a thing, but refactor the code, applying, as always, good programming practices.