function f= rosenb(x);
n=10;
t1=sum( (x(2:n)-x(1:n-1).^2).^2 );
t2=sum( (ones(n-1,1)-x(1:n-1)).^2 );
f=1+100*t1+t2;
[x(1),x(2),f]
