I am trying to use Sage to reduce a word to a reduced word. For example, consider the word $w=[4, 3, 2, 4, 3, 2, 1, 2, 4, 3, 2, 1, 3]=s_4s_3s_2s_4s_3s_2s_1s_2s_4s_3s_2s_1$. I used the following code to reduce the word. But I don't know how to translate the result back to a list. How could I translate w.reduced_word to a list (a word in $s_i$)? Thank you very much.
W = CoxeterGroup(['D',4])
w = W.from_reduced_word([4, 3, 2, 4, 3, 2, 1, 2, 4, 3, 2, 1, 3])
w
w.reduced_word
Don't forget the parentheses.
Indeed,
w.reduced_wordis the method you want to call, and calling it is done asw.reduced_word().So the usage would look something like this:
For a string of
s_{i} s_{j}to be LaTeXed as $s_i s_j$, use:or without spaces: