Symbolic sums and products
Source:R/concrete-products.R, R/concrete-summations.R, R/concrete.R
summation.Rdsummation(f, list(i, a, b)) computes sum(f, i = a..b) in closed form
with SymPy's Sum.doit(): direct sums of short ranges, telescoping,
Faulhaber polynomials, geometric sums (a Piecewise for ratio 1), Gosper's
algorithm, hypergeometric series through hyperexpand() (a Piecewise
with the convergence condition), sums of rational functions over infinite
ranges by residues, zeta sums and Kronecker deltas
(deltasummation()). gosper_sum(f, k) is the indefinite Gosper sum.
product(f, list(i, a, b)) is SymPy's Product.doit(): direct products of
short ranges, rising factorials over the roots of polynomial factors, sums
in exponents, and Kronecker deltas (deltaproduct()). Sum() and Product()
build unevaluated objects; use doit(). is_convergent() applies
standard convergence tests.
Usage
deltaproduct(f, limit)
deltasummation(f, limit, no_piecewise = FALSE)
summation(f, ...)
Sum(f, ...)
product(f, ...)
Product(f, ...)
gosper_sum(f, ...)