I'm working on this C programming assignment, which requires the using of bisection method to find roots of a function. However, I only have a dim idea of how the structure should be. Like how should I declare the function, where should I place the declaration, and if im looking for the root of function, lets say f(x)=x^2+e^x, how do i set it as an argument? *f?
I try to browse around for an example of this, but couldn't find any helpful ones.
Any help will be awesome!