clear;
eta=0.1;
w(1)=10;
for i = 1:100
    w(i+1)=w(i)-eta*(2*w(i)-6-sin(w(i))-0.1*exp(-0.1*w(i)));
end
w(100)
plot(w)
eta*(2*w(100)-6-sin(w(100))-0.1*exp(-0.1*w(100)))

ans =

    3.0717


ans =

   2.2898e-15 < 10^-3