function y = newton_step(f,df,x) % % The function y = newton_step(f,df,x) does one step with newton's % method on f(x) = 0, with derivative function in df, starting at x. %
Also give the value returned by your newton_step.
Answer:
function y = newton_step(f,df,x) % % The function y = newton_step(f,df,x) does one step with newton's % method on f(x) = 0, with derivative function in df, starting at x. % y = x - feval(f,x)/feval(df,x);
y = newton_step('sin','cos',3)
returns 3.1425
Answer:
t = 0:0.01:1;
r = sqrt(t);
cylinder(r);