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
f'(x) = -2&pi &int01 t2exp(-2xt2)dt
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