Question: Modify mybisect to solve until the absolute error is bounded by a given tolerance. Use a while loop to do this. Run your program

Modify mybisect to solve until the absolute error is bounded by a given tolerance. Use a while loop to do

Modify mybisect to solve until the absolute error is bounded by a given tolerance. Use a while loop to do this. Run your program on the function f(x) = 2r + 3x-1 with starting interval [0, 1] and a tolerance of 10-8. How many steps does the program use to achieve this tolerance? (You can count the steps by adding 1 to a counting variable i in the loop of the program.) How big is the final residual f(x)? Turn in your program and a brief summary of the results. Perform 3 iterations of the bisection method on the function f(r) = 2-4, with starting interval [1,3]. By hand, but use a calculator.) Calculate the errors and percentage errors of zo, 1, 72, and 23.

Step by Step Solution

3.41 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer The code is as follow def mybisectfunc a b tolerance i 0 while b a 2 tolerance mid a b 2 if f... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!