Computation of the eigenvalues of the one‐dimensional Schrödinger equation by symplectic methods