clear all
clc
i=1
x(1)=10
f=18
while f>0.01
x(i+1)=x(i)-(x(i)^2+4*x(i))/(2*x(i)+4)
f=abs(x(i+1)-x(i))
i=i+1
end