function [sum,av]=test2_f_1(a)
n=length(a);
sum=0.;
for i=1:n
sum=sum+a(i);
end
av=sum/n;
end