Skip to content

Commit 7a15ffa

Browse files
author
Matthias Koeppe
committed
src/sage/combinat/root_system/hecke_algebra_representation.py: Doctest cosmetics
1 parent dd0f5a8 commit 7a15ffa

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

src/sage/combinat/root_system/hecke_algebra_representation.py

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def domain(self):
168168
169169
sage: H = WeylGroup(["A",3]).algebra(QQ).demazure_lusztig_operators(-1,1)
170170
sage: H.domain()
171-
Algebra of Weyl Group of type ['A', 3] (as a matrix group acting on the ambient space) over Rational Field
171+
Algebra of Weyl Group of type ['A', 3] (as a matrix group
172+
acting on the ambient space) over Rational Field
172173
"""
173174
return self._domain
174175

@@ -429,7 +430,8 @@ def Tw_inverse(self, word):
429430
sage: x = KW.monomial(W.an_element()); x
430431
123
431432
sage: rho.Tw_inverse(word)(x)
432-
1/q2^2*12321 + ((-q1-q2)/(q1*q2^2))*1231 + ((-q1-q2)/(q1*q2^2))*1232 + ((q1^2+2*q1*q2+q2^2)/(q1^2*q2^2))*123
433+
1/q2^2*12321 + ((-q1-q2)/(q1*q2^2))*1231 + ((-q1-q2)/(q1*q2^2))*1232
434+
+ ((q1^2+2*q1*q2+q2^2)/(q1^2*q2^2))*123
433435
sage: rho.Tw(word)(_)
434436
123
435437
"""
@@ -548,9 +550,12 @@ def Y_lambdacheck(self, lambdacheck):
548550
sage: x = KW.monomial(W.an_element()); x
549551
12
550552
sage: Y1(x)
551-
((-q1^2-2*q1*q2-q2^2)/(-q2^2))*2121 + ((q1^3+q1^2*q2+q1*q2^2+q2^3)/(-q1*q2^2))*121 + ((q1^2+q1*q2)/(-q2^2))*212 + ((-q1^2)/(-q2^2))*12
553+
((-q1^2-2*q1*q2-q2^2)/(-q2^2))*2121
554+
+ ((q1^3+q1^2*q2+q1*q2^2+q2^3)/(-q1*q2^2))*121
555+
+ ((q1^2+q1*q2)/(-q2^2))*212 + ((-q1^2)/(-q2^2))*12
552556
sage: Y2(x)
553-
((-q1^4-q1^3*q2-q1*q2^3-q2^4)/(-q1^3*q2))*2121 + ((q1^3+q1^2*q2+q1*q2^2+q2^3)/(-q1^2*q2))*121 + (q2^3/(-q1^3))*12
557+
((-q1^4-q1^3*q2-q1*q2^3-q2^4)/(-q1^3*q2))*2121
558+
+ ((q1^3+q1^2*q2+q1*q2^2+q2^3)/(-q1^2*q2))*121 + (q2^3/(-q1^3))*12
554559
sage: Y1(Y2(x))
555560
((q1*q2+q2^2)/q1^2)*212 + ((-q2)/q1)*12
556561
sage: Y2(Y1(x))
@@ -750,9 +755,11 @@ def Y_eigenvectors(self):
750755
sage: [E[w] for w in W]
751756
[2121 - 121 - 212 + 12 + 21 - 1 - 2 + ,
752757
-2121 + 212,
753-
(q2/(q1-q2))*2121 + (q2/(-q1+q2))*121 + (q2/(-q1+q2))*212 - 12 + ((-q2)/(-q1+q2))*21 + 2,
758+
(q2/(q1-q2))*2121 + (q2/(-q1+q2))*121
759+
+ (q2/(-q1+q2))*212 - 12 + ((-q2)/(-q1+q2))*21 + 2,
754760
((-q2^2)/(-q1^2+q1*q2-q2^2))*2121 - 121 + (q2^2/(-q1^2+q1*q2-q2^2))*212 + 21,
755-
((-q1^2-q2^2)/(q1^2-q1*q2+q2^2))*2121 + ((-q1^2-q2^2)/(-q1^2+q1*q2-q2^2))*121 + ((-q2^2)/(-q1^2+q1*q2-q2^2))*212 + (q2^2/(-q1^2+q1*q2-q2^2))*12 - 21 + 1,
761+
((-q1^2-q2^2)/(q1^2-q1*q2+q2^2))*2121 + ((-q1^2-q2^2)/(-q1^2+q1*q2-q2^2))*121
762+
+ ((-q2^2)/(-q1^2+q1*q2-q2^2))*212 + (q2^2/(-q1^2+q1*q2-q2^2))*12 - 21 + 1,
756763
2121,
757764
(q2/(-q1+q2))*2121 + ((-q2)/(-q1+q2))*121 - 212 + 12,
758765
-2121 + 121]
@@ -838,7 +845,8 @@ def __init__(self, T, T_Y=None, normalized=True):
838845
sage: E.keys()
839846
Weyl Group of type ['B', 3] (as a matrix group acting on the ambient space)
840847
sage: E.domain()
841-
Algebra of Weyl Group of type ['B', 3] (as a matrix group acting on the ambient space) over Fraction Field of Multivariate Polynomial Ring in q1, q2 over Rational Field
848+
Algebra of Weyl Group of type ['B', 3] (as a matrix group acting on the ambient space)
849+
over Fraction Field of Multivariate Polynomial Ring in q1, q2 over Rational Field
842850
sage: E._T == E._T_Y
843851
True
844852
"""
@@ -863,7 +871,7 @@ def cartan_type(self):
863871
sage: E.cartan_type()
864872
['B', 3, 1]
865873
866-
sage: NonSymmetricMacdonaldPolynomials(["B", 2, 1]).cartan_type()
874+
sage: NonSymmetricMacdonaldPolynomials(["B", 2, 1]).cartan_type() # optional - sage.graphs
867875
['B', 2, 1]
868876
"""
869877
return self._T_Y.cartan_type()
@@ -880,7 +888,9 @@ def domain(self):
880888
sage: KW = W.algebra(K)
881889
sage: E = KW.demazure_lusztig_eigenvectors(q1, q2)
882890
sage: E.domain()
883-
Algebra of Weyl Group of type ['B', 3] (as a matrix group acting on the ambient space) over Multivariate Polynomial Ring in q1, q2 over Rational Field
891+
Algebra of Weyl Group of type ['B', 3]
892+
(as a matrix group acting on the ambient space)
893+
over Multivariate Polynomial Ring in q1, q2 over Rational Field
884894
"""
885895
return self._T.domain()
886896

0 commit comments

Comments
 (0)