aboutsummaryrefslogtreecommitdiffstats
path: root/math2373/lab5/sum_of_nn.m
blob: ea36db58c20f4e883a8e54faaa7bb59b70a14ebb (plain) (blame)
1
2
3
4
y(1)=0;
for n=1:N
    y(n+1)=y(n)+1/(n^n);
end