SumTools[IndefiniteSum]
Rational
compute closed forms of indefinite sums of rational functions
Calling Sequence
Parameters
Description
Examples
References
Rational(f, k, options)
f
-
rational function in k
k
name
options
(optional) equation of the form failpoints=true or failpoints=false
The Rational(f, k) command computes a closed form of the indefinite sum of f with respect to k.
Rational functions are summed using Abramov's algorithm (see the References section). For the input rational function fk, the algorithm computes two rational functions sk and tk such that fk=sk+1−sk+tk and the denominator of tk has minimal degree with respect to k. The non-rational part, ∑ktk, is then expressed in terms of the digamma and polygamma functions.
If the option failpoints=true (or just failpoints for short) is specified, then the command returns a pair g,p,q, where
g is the closed form of the indefinite sum of f w.r.t. k,
p is a list containing the integer poles of f, and
q is a list containing the poles of s and t that are not poles of f.
See SumTools[IndefiniteSum][Indefinite] for more detailed help.
withSumToolsIndefiniteSum:
The following expression is rationally summable.
f≔1n2+sqrt5n−1
f≔1n2+5n−1
g≔Rationalf,n
g≔−13n−32+52−13n−12+52−13n+12+52
Check the telescoping equation:
evalaNormalevalg,n=n+1−g,expanded
1n2+5n−1
A non-rationally summable example.
f≔13−57x+2y+20x2−18xy+10y215+10x−26y−25x2+10xy+8y2
f≔20x2−18xy+10y2−57x+2y+13−25x2+10xy+8y2+10x−26y+15
g≔Rationalf,x
g≔−4x5+−7y25+3425Ψx−4y5+35+17y25+35Ψx+2y5−1
simplifycombinef−evalg,x=x+1−g,Ψ
0
Compute the fail points.
f≔1n−2n−3+1n−5
g,fp≔Rationalf,n,failpoints
g,fp≔−1n−5−1n−4+1n−3+1n−2+1n−1,0..0,3..3,5..5,1,2,4
Indeed, f is not defined at n=0,3,5, and g is not defined at n=1,2,4.
Abramov, S.A. "Indefinite sums of rational functions." Proceedings ISSAC'95, pp. 303-308. 1995.
See Also
SumTools[IndefiniteSum][Indefinite]
Download Help Document