Instructor's solutions for lab 2: (a) using Matlab, a 3D view and a slice through y=0; and (b) using Fortran 90, slices at y=0 and y=1/8 (plotted using the free software Veusz). As the number of terms included in the analytical solution increaes to infinity, ever shorter waves (higher wavenumbers) contribute and the analytic solution captures the "peakiness" of the delta function. In the numeric solution, the equivalent progression towards the true solution is made by refining the resolution (reducing the gridlength Δ), so that the heat source, ideally a delta function (if seen in cross section through y=0, is represented by an increasingly narrow (but higher) triangle (always preserving unit area).
A few thoughts/reactions while marking lab 1: