In this paper we show how generalized functions can be used to study the asymptotic behavior of moments of integrals and series in the real and complex domain. We explain how an asymptotic expansion can be obtained in the case of distributions, but show that no such results are possible for analytic functionals.