function out=AckleySine(X)

%Stretch V sine wave
r=[]; n=size(X,1);
for i=1:size(X,2)-1
     E=X(:,i+1).^2+X(:,i).^2;
    % E=abs(X(:,i+1)+X(:,i));
   
     
     
     %I=(E<0);
    %E(I)=0.1*ones(sum(I),1);
    r=[ (E).^0.25 .*(sin(    50*E.^0.1   ).^2 + ones(n,1)     ),r];
end

out=sum(r,2);
