Comparison of Finite-Difference, Finite-Element, and Spectral Methods