Newton Method

%newtons method
%minster
%1. input initial approximation p0, tolerance e, maximum interation n
%2. i=1
%3 while idelta,
x = x0-(fx0./fdiffxo);
x0=x;
enew=abs(x-xs);
i=i+1;
xest(i)=x0;
end
x
numiterNew = i -1