clear
format long
eta=0.01;
w(1)=3;
for i=1:1000
    w(i+1)=w(i)-eta*(2*(w(i)-3)-sin(w(i))-0.1*exp(-0.1*w(i)))
end
plot(w)
w
abs(2*(w(i)-3)-sin(w(i))-0.1*exp(-0.1*w(i)))

 

ans=

     3.071696112536951

 

ans =

     2.113587083130142e-14