Question: Print the screen shot of your MATLAB code with output. Printout must be legible. The first line of your code must be % your name.

 Print the screen shot of your MATLAB code with output. Printout

Print the screen shot of your MATLAB code with output. Printout must be legible. The first line of your code must be % your name. You must show your NAU user name in the "Editor" header. Use NAU computers (possibly the NAU Remote Desktop). Problem. Use the following pseudocode for the Bisection Method and write a MATLAB code to approximate the root of f(x) = e"-x-2 on 10.2] with accuracy within 10-8. Use maximum 100 iterations. Explain steps by commening on them. Algorithm Bisection-Method Input: f(x) = e"-x-2, interval [0.21, tolerance 10-8. maximum number of iterations 100 Output: an approximate root of f on [0, 2 within 10- or a message of failure set a = 0, b 2; rold = a: for i 1 to 100 x = (a + b)/2; if lr - rold 10- % checking required accuracy %done % leave for environment FoundSolution- true: break end if if f(a)f(x)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!