Skip to content

Commit

Permalink
import PolynomialSpecies in doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
mantepse committed Oct 24, 2024
1 parent 0ee0905 commit c981982
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/rings/lazy_species.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def isotype_generating_series(self):
sage: E(C).isotype_generating_series()
1 + X + 2*X^2 + 3*X^3 + 5*X^4 + 7*X^5 + 11*X^6 + O(X^7)
sage: from sage.rings.species import PolynomialSpecies
sage: L2 = LazySpecies(QQ, "X, Y")
sage: P2 = PolynomialSpecies(QQ, "X, Y")
sage: X = L2(P2(SymmetricGroup(1), {0: [1]}))
Expand Down Expand Up @@ -185,6 +186,7 @@ def generating_series(self):
sage: C.generating_series()
X + 1/2*X^2 + 1/3*X^3 + 1/4*X^4 + 1/5*X^5 + 1/6*X^6 + O(X^7)
sage: from sage.rings.species import PolynomialSpecies
sage: L2 = LazySpecies(QQ, "X, Y")
sage: P2 = PolynomialSpecies(QQ, "X, Y")
sage: X = L2(P2(SymmetricGroup(1), {0: [1]}))
Expand Down Expand Up @@ -236,6 +238,7 @@ def cycle_index_series(self):
sage: s(C.cycle_index_series()[5])
s[1, 1, 1, 1, 1] + s[2, 2, 1] + 2*s[3, 1, 1] + s[3, 2] + s[5]
sage: from sage.rings.species import PolynomialSpecies
sage: L = LazySpecies(ZZ, "X")
sage: E = L(lambda n: SymmetricGroup(n))
sage: L2 = LazySpecies(QQ, "X, Y")
Expand Down Expand Up @@ -344,6 +347,7 @@ def structures(self, *labels):
((2, 3, 1), X^3),
((1, 3, 2), X^3)]
sage: from sage.rings.species import PolynomialSpecies
sage: L2 = LazySpecies(QQ, "X, Y")
sage: P2 = PolynomialSpecies(QQ, "X, Y")
sage: X = L2(P2(SymmetricGroup(1), {0: [1]}))
Expand Down Expand Up @@ -432,6 +436,7 @@ def __call__(self, *args):
sage: E2(E2)
P_4 + O^11
sage: from sage.rings.species import PolynomialSpecies
sage: P = PolynomialSpecies(QQ, "X")
sage: Gc = L(lambda n: sum(P(G.automorphism_group()) for G in graphs(n) if G.is_connected()) if n else 0)
sage: E = L(lambda n: SymmetricGroup(n))
Expand Down

0 comments on commit c981982

Please sign in to comment.