Next: Results
Up: CSE 557 Spring 2000
Previous: CSE 557 Spring 2000
The general solution for a Laplace equation
is reasonably complex and depends on the
specified boundary conditions.
For simplicity, the boundary conditions in our numerical experiment are
specified only on the ``edges'' and are set to be zero, so that the
expected solution of the problem is trivial (zero everywhere), thus
making the comparison easy. Two versions of the relaxation algorithm are
implemented, one using the average of only the ``old'' values of the
neighbors (version 1):
and the other using whatever values are stored in
the neighboring locations whether or not they are old or new (version
2):
The MATLAB program for the above approaches is attached at the end
of the report.
Anirudh Modi
2000-02-19