Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Remove TODO in cycle_species.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhansen committed Jan 10, 2014
1 parent 69b55ab commit 13c5a49
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/sage/combinat/species/cycle_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,30 +178,6 @@ def _isotypes(self, structure_class, labels):
if len(labels) != 0:
yield structure_class(self, labels, range(1, len(labels)+1))

def _gs_iterator(self, base_ring):
r"""
The generating series for cyclic permutations is
`-\log(1-x) = \sum_{n=1}^\infty x^n/n`.
EXAMPLES::
sage: P = species.CycleSpecies()
sage: g = P.generating_series()
sage: g.coefficients(10)
[0, 1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7, 1/8, 1/9]
TESTS::
sage: P = species.CycleSpecies()
sage: g = P.generating_series(RR)
sage: g.coefficients(3)
[0.000000000000000, 1.00000000000000, 0.500000000000000]
"""
one = base_ring(1)
yield base_ring(0)
for n in _integers_from(ZZ(1)):
yield self._weight*one/n

def _order(self):
"""
Returns the order of the generating series.
Expand All @@ -214,8 +190,7 @@ def _order(self):
"""
return 1

# TODO: Figure out why this isn't working!
class GeneratingSeriesStream2(SpeciesSeriesStream):
class GeneratingSeriesStream(SpeciesSeriesStream):
def compute(self, n):
r"""
The generating series for cyclic permutations is
Expand Down

0 comments on commit 13c5a49

Please sign in to comment.