]> gitweb.michael.orlitzky.com - octave.git/blobdiff - tests/extended_powell_hessian1_tests.m
Add extended_powell functions and their tests.
[octave.git] / tests / extended_powell_hessian1_tests.m
diff --git a/tests/extended_powell_hessian1_tests.m b/tests/extended_powell_hessian1_tests.m
new file mode 100644 (file)
index 0000000..6b65533
--- /dev/null
@@ -0,0 +1,9 @@
+## When m=1 we should agree with powell_hessian1().
+
+x = [4;5;6;7];
+f1 = powell_hessian1(x);
+f2 = extended_powell_hessian1(x);
+
+unit_test_equals("(extended_)powell_hessian1 agree for m=1", ...
+                true, ...
+                f1 == f2);