1%g = fp(x), gradient of Rosenbrock 2function g = fp(x) 3g = zeros(2,1); 4f1 = 10*(x(2) - x(1)^2); 5g(1) = 2*x(1) - 2 - 40*f1*x(1); 6g(2) = 20*f1; 7