Pseudo-spectral solution of nonlinear Schrödinger equations