File: rosenbrock.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 (5 lines) | stat: -rw-r--r-- 93 bytes parent folder | download | duplicates (2)
1
2
3
4
5
function y = rosenbrock( x )
t1 = (1-x(1));
t2 = (x(2)-x(1)*x(1));
y =t1*t1 + 100*t2*t2; 
end