]> gitweb.michael.orlitzky.com - octave.git/blob - poisson_matrix_tests.m
4b50b2e7553bc8ef3b47b50f210beb1828ea9b7e
[octave.git] / poisson_matrix_tests.m
1 expected_A = [-1, 0, 0, 0, 0; ...
2 -16, 32, -16, 0, 0; ...
3 0, -16, 32, -16, 0; ...
4 0, 0, -16, 32, -16; ...
5 0, 0, 0, 0, -1];
6
7 unit_test_equals("Homework #1 problem #1 Poisson matrix is correct", ...
8 true, ...
9 expected_A == poisson_matrix(4, 0, 1));