% Script for problem 2 in practice quiz 1

x=[1:10000];
y=sqrt(x);
z=1./y;
sum(z)

sum(1./sqrt(1:10000))