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

Commit

Permalink
fix doctests because of __getitem__ change
Browse files Browse the repository at this point in the history
  • Loading branch information
mantepse committed Sep 12, 2022
1 parent 3410eda commit 8fc2dd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sage/combinat/species/generating_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def logarithm(self):
sage: G = species.SimpleGraphSpecies().cycle_index_series() - 1
sage: from sage.combinat.species.generating_series import LogarithmCycleIndexSeries
sage: CG = LogarithmCycleIndexSeries()(G)
sage: CG.isotype_generating_series()[:8]
sage: CG.isotype_generating_series()[0:8]
[0, 1, 1, 2, 6, 21, 112, 853]
"""
base_ring = self.parent().base_ring().base_ring()
Expand Down Expand Up @@ -635,15 +635,15 @@ def LogarithmCycleIndexSeries(R = RationalField()):
its cycle index has negative coefficients::
sage: from sage.combinat.species.generating_series import LogarithmCycleIndexSeries
sage: LogarithmCycleIndexSeries()[:4]
sage: LogarithmCycleIndexSeries()[0:4]
[0, p[1], -1/2*p[1, 1] - 1/2*p[2], 1/3*p[1, 1, 1] - 1/3*p[3]]
Its defining property is that `\Omega \circ E^{+} = E^{+} \circ \Omega = X`
(that is, that composition with `E^{+}` in both directions yields the
multiplicative identity `X`)::
sage: Eplus = sage.combinat.species.set_species.SetSpecies(min=1).cycle_index_series()
sage: LogarithmCycleIndexSeries()(Eplus)[:4]
sage: LogarithmCycleIndexSeries()(Eplus)[0:4]
[0, p[1], 0, 0]
"""
CIS = CycleIndexSeriesRing(R)
Expand Down

0 comments on commit 8fc2dd1

Please sign in to comment.