function out=Griewangk(X)




r=[];
for i=1:size(X,2)
r=[cos(X(:,i)/sqrt(i)),r];
end
R=prod(r,2);
out=-R +ones(size(X,1),1)+sum(X.^2,2)/4000;
