Question: Write a MATLAB program to calculate the positive root of the nonlinear function using a modified version of the Bisection method. f(x) = x
Write a MATLAB program to calculate the positive root of the nonlinear function using a modified version of the Bisection method. f(x) = x - 10 In the standard Bisection method, the guess at the next iteration x is calculated as X =W*a+w*b where w = W = 0.5 In this modified version you have to select the corrected guess in the following way. X1 =W a + W b where Ir(b)l if(a)1+1/(b)| w1 = W2 = Ir(a)l 1/(a)|+ 1/ (b)| Conduct 20 iterations starting with the aand b values of 0 and 1000 and plot absolute true error vs. iteration number in the semilogy plot format. Does this modified method perform better than the standard one? Do not forget to include your Matlab Script.
Step by Step Solution
3.34 Rating (154 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
