1 asympexp.mac is from "The Use of Symbolic Computation in Perturbation
2 Analysis" by R. H. Rand in Symbolic Computation in Fluid Mechanics and
3 Heat Transfer ed H.H.Bau (ASME 1988) (http://tam.cornell.edu/Rand.html)
5 The routine approximates definite integrals of the form
15 in the limit as x approaches infinity.
17 The idea of the method is that exp(x*phi(t)) makes its largest
18 contribution to the integral in the neighbourhood of the point t=c at
19 which phi(t) is maximum.
24 The modified Bessel function of the first kind can be expressed as
30 I (x) = - | cos(n*t) %e dt
35 The results below from maxima-5.9.0-cvs match those in the paper.
37 (C1) load("./asympexp.mac");
40 The integrand is of the form: f(t) exp(x phi(t))
45 enter the lower limit of integration
47 enter the upper limit of integration
50 The integrand is COS(n t) %E
51 integrated from 0 to %PI
52 enter value of t at which phi = COS(t) is maximum
54 enter truncation order
57 (D2) SQRT(2) SQRT(%PI) (98304 x - 49152 n x + 12288 x + 12288 n x
60 - 30720 n x + 6912 x - 2048 n x + 17920 n x - 33152 n x + 7200 x
63 + 256 n - 5376 n + 31584 n - 51664 n + 11025) %E /(196608 x )
72 The second example from the paper is Stirling's formula for the gamma function
87 Gamma(x) = x | - %e du
92 The results below from maxima-5.9.0-cvs match those in the paper.
95 The integrand is of the form: f(t) exp(x phi(t))
100 enter the lower limit of integration
102 enter the upper limit of integration
106 The integrand is ----------------
108 integrated from 0 to INF
109 enter value of t at which phi = LOG(t) - t is maximum
111 enter truncation order
114 SQRT(2) SQRT(%PI) (2488320 x + 207360 x + 8640 x - 6672 x - 571) %E
115 (D4) -------------------------------------------------------------------------