2016160046 김유현

 

-코드-

clear
eta=0.5;
w(1)=4;
for n=1:20
    w(n+1)=w(n)-eta*(2*(w(n)-3)-sin(w(n))-0.1*exp(-0.1*w(n)));
end
2*(w(20)-3)-sin(w(20))-0.1*exp(-0.1*w(20))
w_star=w(20)

 

-실행결과-

ans =

    -4.972024887514581e-06


w_star =

   3.071694457905303