Analysis of a nonlinear Schrödinger equation with numerical techniques