You are on page 1of 1

function newtraph(func,dfunc,es,imax,xr,iter,ea)

format long
while true,
xrold= ; %xrold=???
xr = ; %You need to write the equation for xr here.
iter=iter+1;
if (xr~=0)
ea= ; %-- Write the absolute error here
end
if (ea<es ||iter>=imax)
break;
end;
end
newtraph= %???

You might also like