Two new classes of nonlinear transformations, the D-transformation to accelerate the convergence of infinite integrals and the d-transformation to accelerate the convergence of infinite series, are presented. In the course of the development of these transformations two interesting asymptotic expansions, one for infinite integrals and the other for infinite series, are derived. The transformations D and d can easily be applied to infinite integrals ∫∞0f(t)dt whose integrands f(t) satisfy linear differential equations of the form f(t)=Σmk=1pk(t)fk(t) and to infinite series Σ∞r=1f(r) w terms f(r) satisfy a linear difference equation of the form f(r)=Σmk=1pk(r)Δkf(r), such that in both cases the pk have asymptotic expansions in inverse powers of their arguments. In order to be able to apply these transformations successfully one need not know explicitly the differential equation that the integrand satisfies or the difference equation that the terms of the series satisfy; mere knowledge of the existence of such a differential or difference equation and its order m is enough. This broadens the areas to which these methods can be applied. The connection between the D- and d-transformations with some known transformations in shown. The use and the remarkable efficiency of the D- and d-transformations are demonstrated through several numerical examples. The computational aspects of these transformations are described in detail.