The treatment of a nonlinear Schrodinger equation with power law poten
tial terms by means of hypervirial perturbation theory (HVPT) is consi
dered. Previous workers have tried to handle the nonlinearity by const
ructing an HVPT which also contains a nonlinear term. We show that hig
her numerical accuracy can be obtained by reverting to the usual linea
r HVPT in combination with a simple numerical procedure. The procedure
also works with finite-difference shooting calculations, which would
permit the calculations to be extended to handle more general potentia
ls. (C) 1998 Published by Elsevier Science B.V.