%% Newton method matlab code animation exampple %Dejen Ketema, March,2019. f=@(x)x.^2-4; df=@(x)2*x; p0=4; tol=.001; xmin=0; xmax=5; p=newton_plot_2019(f,df,p0,xmin,xmax,tol);