@@ -175,6 +175,11 @@ cdef class ComplexReflectionGroupElement(PermutationGroupElement):
175
175
[1, 2, 2, 1, 1 ] 5
176
176
[1, 1, 2, 1, 1, 2 ] 6
177
177
[1, 1, 2, 2, 1, 1 ] 6
178
+
179
+ sage: data = {w: ( len( w. reduced_word( )) , w. length( )) # optional - gap3
180
+ .... : for w in W. iteration_tracking_words( ) }
181
+ sage: for w in W: # optional - gap3
182
+ .... : assert data[w ] == ( w. length( ) , w. length( )) , w
178
183
"""
179
184
return ZZ(len (self .reduced_word()))
180
185
@@ -192,9 +197,12 @@ cdef class ComplexReflectionGroupElement(PermutationGroupElement):
192
197
EXAMPLES::
193
198
194
199
sage: W = ReflectionGroup(( 3,1,2)) # optional - gap3
200
+ sage: data = {w: [w.to_matrix(), w.to_matrix(on_space="dual") ] for w in W} # optional - gap3
195
201
sage: for w in W. iteration_tracking_words( ) : # optional - gap3
196
202
.... : w. reduced_word( ) # optional - gap3
197
- .... : [w.to_matrix(), w.to_matrix(on_space="dual") ] # optional - gap3
203
+ .... : mats = [w.to_matrix(), w.to_matrix(on_space="dual") ] # optional - gap3
204
+ .... : mats
205
+ .... : assert data[w ] == mats
198
206
[]
199
207
[
200
208
[1 0 ] [1 0 ]
@@ -564,6 +572,10 @@ cdef class ComplexReflectionGroupElement(PermutationGroupElement):
564
572
[2/3, 0 ]
565
573
[1/2, 1/2 ]
566
574
[1/4, 3/4 ]
575
+
576
+ sage: data = {w: w. reflection_eigenvalues( ) for w in W} # optional - gap3
577
+ sage: all( w. reflection_eigenvalues( ) == data[w ] for w in W. iteration_tracking_words( )) # optional - gap3
578
+ True
567
579
"""
568
580
return self ._parent.reflection_eigenvalues(self , is_class_representative = is_class_representative)
569
581
@@ -665,6 +677,10 @@ cdef class ComplexReflectionGroupElement(PermutationGroupElement):
665
677
[ 2/3*E(3) - 2/3*E(3)^2 1/3*E(3) - 1/3*E(3)^2 ],
666
678
[ 1/3*E(3) - 1/3*E(3)^2 -1/3*E(3) + 1/3*E(3)^2 ]
667
679
[-2/3*E(3) + 2/3*E(3)^2 -1/3*E(3) + 1/3*E(3)^2 ]]
680
+
681
+ sage: data = {w: w. galois_conjugates( ) for w in W} # optional - gap3
682
+ sage: all( w. galois_conjugates( ) == data[w ] for w in W. iteration_tracking_words( )) # optional - gap3
683
+ True
668
684
"""
669
685
rk = self ._parent.rank()
670
686
M = self .to_matrix().list()
0 commit comments