total=0.;
for n=1:10000
    total=total+1/n^2;
end
total