Skip to content

Commit

Permalink
fix doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
Newtech66 committed Aug 30, 2024
1 parent bf87e50 commit f9919ff
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sage/rings/species.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from itertools import accumulate, chain

from sage.arith.misc import multinomial
from sage.categories.graded_algebras_with_basis import GradedAlgebrasWithBasis
from sage.categories.infinite_enumerated_sets import InfiniteEnumeratedSets
from sage.categories.monoids import Monoids
Expand All @@ -18,7 +17,6 @@
from sage.monoids.indexed_free_monoid import (IndexedFreeAbelianMonoid,
IndexedFreeAbelianMonoidElement,
IndexedMonoid)
from sage.functions.other import binomial
from sage.rings.integer_ring import ZZ
from sage.sets.finite_enumerated_set import FiniteEnumeratedSet
from sage.structure.element import Element, parent
Expand Down Expand Up @@ -1657,8 +1655,8 @@ def _compose_with_weighted_singletons(self, names, multiplicities, degrees):
-E_2 + X^2
sage: C4 = P(CyclicPermutationGroup(4))
sage: C4.compose_with_weighted_singletons(ZZ, ["X"], [-1], [[4]])
{((1,2)(3,4),)} - C_4
sage: C4._compose_with_weighted_singletons(["X"], [-1], [[4]])
-C_4 + {((1,2)(3,4),)}
Exercise (2.5.17)::
Expand All @@ -1676,8 +1674,8 @@ def _compose_with_weighted_singletons(self, names, multiplicities, degrees):
TESTS::
sage: (C4+E2^2).compose_with_weighted_singletons(ZZ, ["X"], [-1], [[4]])
{((1,2)(3,4),)} - C_4 - 2*X^2*E_2 + E_2^2 + X^4
sage: (C4+E2^2)._compose_with_weighted_singletons(["X"], [-1], [[4]])
-C_4 + {((1,2)(3,4),)} + E_2^2 - 2*X^2*E_2 + X^4
"""
P = self.parent()
Expand Down

0 comments on commit f9919ff

Please sign in to comment.