GS534: Solving the 1D Poisson equation using finite differences ...
GS534: Solving the 1D Poisson equation using finite differences ...
GS534: Solving the 1D Poisson equation using finite differences ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
u(j) = ( r(j) - a(j)*u(j-1))/bet<br />
enddo<br />
do j=n-1,1,-1<br />
u(j) = u(j) - gam(j+1)*u(j+1)<br />
enddo<br />
return<br />
end<br />
References<br />
Golub, G.H., and C.F. Van Loan, Matrix Computations, 2nd edition, Johns Hopkins University<br />
Press, 1989.<br />
Press, W.H., S.A. Teukolsky, W.T. Vetterling, B.P. Flannery, Numerical Recipes, <strong>the</strong> art of scientific<br />
computing, 2nd edition, Cambridge University Press, 1992.<br />
Wesseling, P., An introduction to multigrid methods, Wiley and Sons, 1992.<br />
10