]> gitweb.michael.orlitzky.com - octave.git/blobdiff - tests/powell_gradient1_tests.m
Add powell_gradient(), powell_gradient1() and their tests.
[octave.git] / tests / powell_gradient1_tests.m
diff --git a/tests/powell_gradient1_tests.m b/tests/powell_gradient1_tests.m
new file mode 100644 (file)
index 0000000..dbc463d
--- /dev/null
@@ -0,0 +1,5 @@
+## The gradient should be zero at the optimal point.
+
+unit_test_equals("powell_gradient1([0;0;0;0]) == 0", ...
+                0, ...
+                powell_gradient1([0;0;0;0]));