1 ## Test the optimal point.
3 unit_test_equals("rosenbrock1([1;1]) == 0", ...
7 ## It should fail with the wrong number of coordinates.
9 unit_test_equals("rosenbrock1 fails with too few coordinates", ...
13 f = rosenbrock1([1;2;3]);
14 unit_test_equals("rosenbrock1 fails with too many coordinates", ...