Discrete Poisson equation: Difference between revisions

-1 & ~4 & -1 & ~0 & ~0 & \ldots & ~0 \\
~0 & -1 & ~4 & -1 & ~0 & \ldots & ~0 \\
\vdots & \ddotsvdots & \ddotsvdots & \ddotsvdots & \ddotsvdots & \ddots & \vdots \\
~0 & \ldots & ~0 & -1 & ~4 & -1 & ~0 \\
~0 & \ldots & \ldots & ~0 & -1 & ~4 & -1 \\
</math>
 
<ref>Golub, Gene H. and C. F. Van Loan, ''Matrix Computations, 3rd Ed.'',
The Johns Hopkins University Press, Baltimore, 1996, pages 177–180.</ref>
and <math>b</math> is defined by