Homework 3: Newton vs. Bisection
First Draft due 1pm Fri. Sep. 14 to owlspace assignment page
Final Draft due 5pm Mon. Sep 17 to owlspace assignment page

Get to know this Deluxe Bisection routine. Write a similar Deluxe Newton routine, i.e., one whose first real line is

        function [x, iter] = denewt(x,V,tol,maxiter)
and that also solves f(x,V)=0 when given V. You will need the derivative of

     f(x) = &pi &int01 exp(-2xt2)dt - V

namely

     f'(x) = -2&pi &int01 t2exp(-2xt2)dt

Write a driver that sets V=2, calls deluxe bisection with (a=0,b=4) and denewt with starting guess x=2, over the range of tolerances tol = 10-j, j=1,2,...,6 and produces this figure .

Your work will be graded as follows:

     First Draft, 6 pts for a draft of denewt and its subfunction production
                  of f and f'.

     denewt      6 pts for header/program description,
                 6 pts for further comments in code
                 4 pts for indentation
                 4 points for header describing subfunction
                 10 pts for correct code.

     driver      6 pts for header/program description,
                 6 pts for further comments in code
                 4 pts for indentation
                 4 pts for correct code.

     The plot, 4 points