Ll I.
asked 03/03/22Calculus EXERCISES 4.4 The Mean Value Theorem
The Intermediate Value Theorem can be used to approximate a root. The following is an example of binary search in computer science. Suppose you want to approximate √6. You know that it is between 2 and 3. If you consider the function f(x)=x2−6, then note that f(2)<0 and f(3)>0. Therefore by the Intermediate Value Theorem, there is a value, 2≤c≤3 such that f(c)=0. Next choose the midpoint of these two values, 2.5, which is guaranteed to be within 0.5 of the actual root. f(2.5) will either be less than 0 or greater than 0. You can use the Intermediate Value Theorem again replacing 2.5 with the previous endpoint that has the same sign as 2.5. Continuing this process gives a sequence of approximations xn with x1=2.5. How many iterations must you do in order to be within 0.0009765625 of the root?
1 Expert Answer
We can think of our maximum allowable error as the nth term of a geometric sequence with common ratio, r, = 1/2 (since with each iteration we halve the width of the interval we know the root lies in) and a1 = 1/2, since our first guess is guaranteed to be within 1/2 of the actual root.
an = 1/2·1/2(n-1) = .0009765625
1/2n = .0009765625
2n = 1,024
n = 10
Still looking for help? Get the right answer, fast.
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Mark M.
What prevents you from following the explicit instructions?03/03/22