]> gitweb.michael.orlitzky.com - octave.git/blob - optimization/test_functions/rosenbrock_gradient.m
Add the cholesky_inf() function.
[octave.git] / optimization / test_functions / rosenbrock_gradient.m
1 function g = rosenbrock_gradient(x1, x2)
2 %
3 % The gradient of the Rosenbrock function. See rosenbrock.m for more
4 % information.
5 %
6 f_x1 = -400*x1*(x2 - x1^2) + 2*x1 - 2;
7 f_x2 = 200*(x2 - x1^2);
8 g = [f_x1; f_x2];
9 end