I have written the code for solving f(x) = 0 by the bisection method. Here I took f(x) = sin(x) - x*cos(x). The equation in the interval of -10 to +10 has multiple solutions