Solve Poisson's equation on the unit square (square.m)
with homogeneous Dirichlet
boundary conditions, , and the right-hand side given by
![]() |
(3) |
Compare your computed solution with the exact solution
.
How large is the error in the maximum norm?
The maximum norm of the error is given by
![]() |
(4) |
Check your answer: The error in the maximum norm should be for the first mesh
and
for the refined mesh. Notice that the error is decreased by a
factor
when we decrease the mesh size with a factor
.