SumTools[Hypergeometric]
DefiniteSumAsymptotic
asymptotic expansion of a definite hypergeometric sum
Calling Sequence
Parameters
Description
Examples
References
DefiniteSumAsymptotic(T, n, k, l..u, f)
T
-
algebraic expression representing a hypergeometric term of both n and k
n
name
k
l..u
range for k
f
(optional) unevaluated name
For a hypergeometric term T of n and k over the real number field, the DefiniteSumAsymptotic(T,n,k,l..u) command computes the asymptotic expansion of the definite sum S⁡n=∑k=lu⁡T with respect to the variable n (as n approaches ∞), where l=r⁢n+s and u=t⁢n+v for some real numbers r, s, t, v.
The routine returns an error if T does not satisfy the following conditions for all large enough n and for all k in the range l..u:
T is defined;
T has constant sign.
In trivial cases (for example, when T is a rational function in k and polynomial in n) the procedure returns an asymptotic expansion of S⁡n with a truncation order specified by the global variable Order. Otherwise, if possible, the procedure returns the main part of an asymptotic expansion of the form:
Sgn⁢nC0⁢n+C1⁢na1+...+Cm⁢nam⁢nD ⁢ⅇQ⁡n1b⁢1+O⁡1nc
or
Sgn⁢nC0⁢n+C1⁢na1+...+Cm⁢nam⁢nD ⁢ⅇQ⁡n1b⁢1+O⁡1
Sgn⁢nC0⁢n+C1⁢na1+...+Cm⁢nam⁢nD ⁢ⅇQ⁡n1b⁢1+O⁡n
where
Sgn is 1 or -1,
C0, C1, ..., Cm, D are constants,
a1, ..., am are positive rational numbers ≤1,
c is a positive rational number,
b is a positive integer, and
Q is a polynomial of degree ≤b.
The procedure can compute the asymptotics of most frequently used binomial sums. In case it cannot compute one, it returns FAIL.
If the optional argument f is specified, the input is not trivial, and the main part of the asymptotic expansion was computed to be O⁡1nc, then f will be assigned an auxiliary procedure. This procedure computes approximate values for the next coefficients in the asymptotic expansion, by treating an experimental sample for large n statistically, using the least-squares method.
The procedure assigned to f returns a sequence of two elements. The first element is the asymptotic expansion, which contains placeholder names _s1, _s2, ... The second element is a list of equations _s1=s1, _s2=s2, ... where s1, s2, ... are floating-point numbers approximating the values of _s1, _s2, ...
The typical calling sequence of the auxiliary procedure is f⁡n0,n1,h,q, where
n0 is a lower bound for the samples w.r.t. n;
n1 is an upper bound for the samples w.r.t. n;
h is the step size for the samples w.r.t. n;
q is the desired number of coefficients _si.
These parameters should satisfy the following constraints:
100≤n0,
h is a positive integer,
n0+10⁢h≤n1, and
3≤q.
The recommended values for the parameters are 1000≤n0, 2⁢n0≤n1, h=10; q=3 if c=1 and q=6 if c<1. By default, calling f⁡ without arguments is equivalent to f⁡1000,2000,10,3.
If there is a conjecture for an exact value s1 of _s1, then f⁡n0,n1,h,q,s1 computes approximate values for the subsequent coefficients. Similarly, it is possible to call f⁡n0,n1,h,q,s1,s2, f⁡n0,n1,h,q,s1,s2,s3, etc.
Note that the value of Digits controls only the working precision, i.e., the number of digits that f uses when it calculates the experimental sample and runs the least-squares method. The accuracy of s1, s2, ... can be increased by calling f with higher values of n0, n1, and Digits. Generally, the values si are less accurate the higher the index i is.
with⁡SumToolsHypergeometric:
DefiniteSumAsymptotic⁡binomial⁡n,k,n,k,0..n
2n⁢1+O⁡1n
DefiniteSumAsymptotic⁡binomial⁡2⁢n,n−k⁢k,n,k,0..n
O⁡n⁢2n2
T≔binomial⁡2⁢n,2⁢k3:
DefiniteSumAsymptotic⁡T,n,k,0..n,f
64n⁢3⁢1+O⁡1n6⁢π⁢n
res≔f⁡
res≔64n⁢3⁢1+_s1n+_s122+_s2n2+_s3+_s1⁢_s2+16⁢_s13n3+O⁡1n46⁢π⁢n,_s1=−0.1666666667,_s2=−0.004629630518,_s3=0.001544419223
convert⁡res21,rational,9
_s1=−16
Digits≔20:
res≔f⁡1000,2000,10,3,−16
res≔64n⁢3⁢1−16⁢n+172+_s1n2+_s2−_s16−11296n3+_s3−16⁢_s2+172⁢_s1+12⁢_s12+131104n4+O⁡1n56⁢π⁢n,_s1=−0.0046296296295318913642,_s2=0.0015432094765491628609,_s3=0.00053636958191821916288
convert⁡res21,rational,10
_s1=−1216
Sum⁡T,k=0..n=eval⁡eval⁡res1,,res2
∑k=0n⁡2⁢n2⁢k3=64n⁢3⁢1−16⁢n+1108⁢n2+0.0015432094765491628609n3+0.00025773453198581410444n4+O⁡1n56⁢π⁢n
Ryabenko, A.A., and Skorokhodov, S.L. "Asymptotics of Sums of Hypergeometric Terms." Programming and Computer Software. Vol. 31, (2005): 65-72.
See Also
asympt
eulermac
LinearAlgebra[LeastSquares]
SumTools[Hypergeometric][DefiniteSum]
Download Help Document