Write a program to find a zero of a function f in the following way: In each step, an interval [a, b] is given and f (a) f (b) < 0. Then c is computed as the root of the linear function that agrees with f at a and b. We retain either [a, c] or [c, b], depending on whether f (a) f (c) < 0 or f (c) f (b) < 0. Test your program on several functions.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.