If I have a code like this
funk=@(x) x2-4;
dfunk=@(x) 2*x;
xk=4;
for i = 1:5
xk+i= xk-funk(of what? xk or @(x) x2-4) / dfunk( same problem here);
end
I do not know what am I supposed to write in brackets it is supposed to be Newton Raphson method. Thanks for help