I'm writing a small program to resolve functions using bisection method. I want to test the case when the method finds 2 roots, but I can't find examples.
Can anyone give me an example of a function that when resoved using bisection method gives 2 roots?
My only request is that when evaluated, the function does not evaluate 0 (because f(a)*f(b) using 0 will give 0).
Thanks.