Message79374
Got Sage working again. It also returns an empty list for r > n. For r
negative, Combinations returns an empty list and Permutation gives an
error.
sage: Combinations(range(4), 6)
Combinations of [0, 1, 2, 3] of length 6
sage: Combinations(range(4), 6).list()
[]
sage: Permutations(range(4), 6).list()
[]
sage: Combinations(range(4), -1).list()
[]
sage: Permutations(range(4), -1).list()
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
[... traceback snipped ...] |
|
Date |
User |
Action |
Args |
2009-01-07 21:16:32 | mark.dickinson | set | recipients:
+ mark.dickinson, rhettinger, LambertDW, TFinley |
2009-01-07 21:16:32 | mark.dickinson | set | messageid: <1231362992.37.0.0595471669706.issue4816@psf.upfronthosting.co.za> |
2009-01-07 21:16:31 | mark.dickinson | link | issue4816 messages |
2009-01-07 21:16:30 | mark.dickinson | create | |
|