%
%  A "for loop" for Newton's method is:
%
%  make sure f(x)=x^2-4 initially fo rthis code.
%
clear x
x(1)=4;
m=10;
for i=1:m
    x(i+1)=x(i)-f(x(i))./df(x(i));
end;
format long
x'
pause




