The exercise examines various choices that can be made for the approximate solution using the bisection method. Assume that the subinterval (i,i) has just been calculated, and the goal is to now determine what pointishould be selected from this subinterval as the approximation for the solution.
(a) Whatever choice is made, the error isi−. Sketch this as a function of, fori≤ ≤i. Explain why the minimum error occurs wheni−i=i−i, and from this conclude thati= (i+i)/2. In other words, one should select the midpoint of the subinterval.
(b) Suppose one instead uses the relative error (i−)/. This requires a nonzero solution, so it is assumed here that 0ii. By sketching (=−)/, fori≤ ≤i, explain why the minimum error occurs wheni= 2ii/(i+i).
(c) Does it make much difference which choice is made fori? In answering this, assume that the stopping condition for the loop in Table 2.1 is the same irrespective of the choice fori.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here