]> gitweb.michael.orlitzky.com - octave.git/blobdiff - run-tests.m
Update the poisson_matrix test with negated values.
[octave.git] / run-tests.m
index 2ff59a3e7081106154661b3b33b3c737e66e71c8..2ad4c2462b06f1203134c5576aaecde217db9f98 100755 (executable)
@@ -43,11 +43,11 @@ unit_test_equals("2 is even", ...
                 true, ...
                 even(2));
 
-expected_A = [1, 0, 0, 0, 0; ...
-              16, -32,  16,  0,  0; ...
-             0,   16, -32,  16, 0; ...
-             0,   0,   16, -32, 16; ...
-             0,   0,   0,   0,  1];
+expected_A = [-1, 0, 0, 0, 0; ...
+              -16, 32,  -16,  0,  0; ...
+             0,   -16, 32,  -16, 0; ...
+             0,   0,   -16, 32, -16; ...
+             0,   0,   0,   0,  -1];
 unit_test_equals("Homework #1 problem #1 Poisson matrix is correct", ...
                 true, ...
                 expected_A == poisson_matrix(4, 0, 1));