sum.spad line 1 [edit on github]
tools for the summation packages.
sum(p(n), n)
returns P(n)
, the indefinite sum of p(n)
with respect to upward difference on n
, i.e. P(n+1) - P(n) = p(n)
.
sum(p(n), n = a..b)
returns p(a) + p(a+1) + ... + p(b)
.