File: rosenbrock_grad.m

package info (click to toggle)
cppnumericalsolvers 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: cpp: 2,694; python: 236; sh: 20; makefile: 10
file content (4 lines) | stat: -rw-r--r-- 128 bytes parent folder | download | duplicates (2)
1
2
3
4
function grad = rosenbrock_grad( x )
grad = [-2*(1-x(1))+200*(x(2)-x(1)*x(1))*(-2*x(1))    ;
         200*(x(2)-x(1)*x(1))];
end