sumtools
extended_gosper
Gosper's algorithm for summation
Calling Sequence
Parameters
Description
Examples
extended_gosper(f, k)
extended_gosper(f, k=m..n)
extended_gosper(f, k, j)
f
-
expression
k
name, summation variable
m, n
expressions, representing upper and lower summation bounds
j
integer
This function is an implementation of an extension of Gosper's algorithm, and calculates a closed-form (upward) antidifference of a j-fold hypergeometric expression f whenever such an antidifference exists. In this case, the procedure can be used to calculate definite sums
∑k=mn⁡f⁡k
whenever f does not depend on variables occurring in m and n.
An expression f is called a j-fold hypergeometric expression with respect to k if
f⁡k+jf⁡k
is rational with respect to k. This is typically the case for ratios of products of rational functions, exponentials, factorials, binomial coefficients, and Pochhammer symbols that are rational-linear in their arguments. The implementation supports this type of input.
An expression g is called an upward antidifference of f if
f⁡k=g⁡k+1−g⁡k
An expression g is called j-fold upward antidifference of f if
f⁡k=g⁡k+j−g⁡k
If the second argument k is a name, and extended_gosper is invoked with two arguments, then extended_gosper returns the closed form (upward) antidifference of f with respect to k, if applicable.
If the second argument has the form k=m..n then the definite sum
is determined if Gosper's algorithm applies.
If extended_gosper is invoked with three arguments then the third argument is taken as the integer j, and a j-fold upward antidifference of f is returned whenever it is a j-fold hypergeometric term.
If the result FAIL occurs, then the implementation has proved either that the input function f is no j-fold hypergeometric term, or that no j-fold hypergeometric antidifference exists.
The command with(sumtools,extended_gosper) allows the use of the abbreviated form of this command.
with⁡sumtools:
see (SIAM Review, 1994, Problem 94-2)
extended_gosper⁡−1k+1⁢4⁢k+1⁢2⁢k!k!⁢4k⁢2⁢k−1⁢k+1!,k
−2⁢k+1⁢−1k+1⁢2⁢k!k!⁢4k⁢2⁢k−1⁢k+1!
extended_gosper⁡binomial⁡n,k2n−binomial⁡n−1,k2n−1,k
−k⁢nk2n−n−1k2n−12⁢k−n
extended_gosper⁡pochhammer⁡b,k2k2!,k
k⁢pochhammer⁡b,k22⁢b⁢k2!+k+1⁢pochhammer⁡b,k2+122⁢b⁢k2+12!
extended_gosper⁡k2!,k
FAIL
extended_gosper⁡k⁢k2!,k
2⁢k2!+2⁢k2+12!
extended_gosper⁡k⁢k2!,k,2
2⁢k2!
extended_gosper⁡k⁢k2!,k=1..n
2⁢n2+12!+2⁢n2+1!−2⁢12!−2⁢1!
See Also
sumtools[gosper]
SumTools[Hypergeometric][ExtendedGosper]
Download Help Document