Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[concrete/summations] Implement some binomial sums.
Specifically, in the evaluation method using hypergeometric functions, when encountering a finite sum from a to b, try to evaluate it by summing from a to infinity and subtracting the sum from b+1 to infinity. Fix a problem where _eval_sum_hyper substitutes zero in the expression and, if it gets zero, adds one and starts over. This yields to an inifinite loop if the expression is identically zero under the correct assumptions. Extend binomial.eval() to recognise that binomial(n, k) is always zero if k is bigger than n. Add tests.
- Loading branch information
Tom Bachmann
committed
Apr 25, 2012
1 parent
0728d2c
commit 340b130
Showing
4 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters