Due March 19:
- Program finite differences to solve
-y'' = (pi/2)^2 sin(pi*x/2) , x in (0,1)
y(0) = 0 , y'(1) = 1
Use Lapack routine dgttrs to solve the linear system.
You do not need to compile dgttrs and dgttrf; it is sufficient to
link with "-llapack".
- Use your code to perform a mesh refinement study.
Plot the log of the mean square error at the mesh points versus
minus the log of the mesh width.
Also plot the log of the error in the solution at x=1 versus minus
the log of the mesh width.
Finally, plot the log of the error in the derivative of the
solution at x=0 versus minus the log of the mesh width.
How does the observed error in the numerical results compare with
the order you should expect to observe?
- Due March 26:
Section 12.5.3 #2
- Due April 9:
Section 12.5.5 #3
Return to: John A. Trangenstein *
Last modified: