How can I solve f(x) with bisection method with the interval [1,2]?
The first thing I would do is examine the mathematical solution, and create a step-by-step algorithm that will solve for any f(x), and then I would create an algorithm for a program that incorporated that mathematical method.
Have you tried that approach, or did you just start coding? What code do you have?