function sum=funk1(tol) 


sum=0;
i=1;
term=1/i^2;

while  term>tol
    sum=sum+term;
    i=i+1;
    term=1/i^2;    
end

