Here are the Postscript file:homework1.ps and
the LaTeX file:homework1.tex.
Math 228C Computational Assignment 1 Spring 1999
Due: Monday, April 26, 1999
Discretize the 1D model problem
for f=0 with the standard three-point discretization of the Laplacian. In 1D, the domain
is the unit interal [0,1], and the boundary of
is the set containing the points 0 and 1.
On a grid with N gridpoints,use Weighted Jacobi (WJ) with
, regular Gauss-Seidel(GS) and Red-Black Gauss-Seidel(GSRB) with initial guesses
vk for k=1,3,6 and N/2-1 on grids of
N=64,128,256. Here
vk denotes the k Fourier mode, which has components
For each of these computations, plot the max norm of the error
against the iterations number for 100 iterations.
MAT 228C Webpage
|Program #1
|Program #2
|Program #3
|Program #4
Wenlong Jin
1999-04-19