function [ y ] = newton( f , x )

y=x;
d=norm(feval(f,y));

while d>1e-10
    y = newtstep2( f , y);
    d = norm(feval(f,y));
end

end