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

\begin{eqnarray*}\Delta u &=&f=0 \\
u&=&0 \qquad \mbox{ on } \partial \Omega
\end{eqnarray*}


for f=0 with the standard three-point discretization of the Laplacian. In 1D, the domain $\Omega$ is the unit interal [0,1], and the boundary of $\Omega$ is the set containing the points 0 and 1.
On a grid with
N gridpoints,use Weighted Jacobi (WJ) with $\omega=2/3$, 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

\begin{eqnarray*}(\textbf v_k)_j&=&\rm {sin}(\frac {jk\pi}{N})
\end{eqnarray*}


For each of these computations, plot the max norm of the error $\vert\vert\textbf e\vert\vert _{\infty}$ against the iterations number for 100 iterations.

MAT 228C Webpage |Program #1 |Program #2 |Program #3 |Program #4

Wenlong Jin
1999-04-19