function y = rosenbrock( x )
t1 = (1-x(1));
t2 = (x(2)-x(1)*x(1));
y =t1*t1 + 100*t2*t2; 
end