Numerical aspects of the one-dimensional diffusion equation