Hello, I have to write a simple Newton function but it's not working:
function out = newton (f, df, x, eps)
while abs(h)>= eps && (k < 1000)
Then I have to create a matrix which stocks the solutions of the newton's function and create a graph from this matrix but it's not working either:
out = x.^3 - (6*x.^2)+ 11*x - 6;
Tab = [Tab [newton(i,f1,df1,10^(-8))]]
Can someone please help me?