aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/math2373/lab6/euler5.m
blob: 2de61e36d41580b824123ea21805f920c21410ee (plain) (blame)
1
2
3
4
5
h=2/5; t(1)=0; y(1)=1;
for n=1:5
    t(n+1)=t(n)+h;
    y(n+1)=y(n)+(-y(n)+t(n))*h;
end