Large-time behavior of compressible polytropic fluids and nonlinear Schrödinger equation