X-Git-Url: http://gitweb.michael.orlitzky.com/?p=octave.git;a=blobdiff_plain;f=poisson_matrix.m;h=4171374f0cb03799d3312bc29758218101717173;hp=696185ff0e6418649aecb60d47e05d274e9b33f3;hb=b89ed48b92e5b38b7c8df70c12e4b8cc275628df;hpb=6de25e4c4273789fd2f98e309db4ef3f0902b185 diff --git a/poisson_matrix.m b/poisson_matrix.m index 696185f..4171374 100644 --- a/poisson_matrix.m +++ b/poisson_matrix.m @@ -60,6 +60,7 @@ function A = poisson_matrix(integerN, x0, xN) A = cat(1, A, u_row); end - ## Finally, append the last row for xN. - A = cat(1, A, u_xN_coeffs); + ## Finally, append the last row for xN and negate the whole thing (see + ## the definition of the poisson problem). + A = - cat(1, A, u_xN_coeffs); end