]> gitweb.michael.orlitzky.com - octave.git/blob - tests/extended_rosenbrock_hessian1_tests.m
Add extended_rosenbrock_hessian1() and its tests.
[octave.git] / tests / extended_rosenbrock_hessian1_tests.m
1 ## When m=1 we should agree with rosenbrock_hessian1().
2
3 x = [4;5];
4 f1 = rosenbrock_hessian1(x);
5 f2 = extended_rosenbrock_hessian1(x);
6
7 unit_test_equals("(extended_)rosenbrock_hessian1 agree for m=1", ...
8 true, ...
9 f1 == f2);