  Using a suitable Laguerre basis set that ensures a tridiagonal matrix
representation of the reference Hamiltonian, we were able to evaluate in closed
form the matrix elements of the generalized Yukawa potential with complex
screening parameter. This enabled us to treat analytically both the cosine and
sine-like Yukawa potentials on equal footing and compute their bound states
spectrum as the eigenvalues of the associated analytical matrix representing
their Hamiltonians. Finally we used a carefully designed complex scaling method
to evaluate the resonance energies and compared our results satisfactorily with
those obtained in the literature.
