function X=iteration(F,x0,n)
m=length(x0);
X=zeros(n+1,m);
X(1,:)=x0;
for i=1:n,
    X(i+1,:)=feval(F,X(i,:));
end;
