| 1 | initial version |
Replace t2=t1.reduced_word() with
R = W.simple_reflections()
t2 = [R[s] for s in t1.reduced_word()]
| 2 | No.2 Revision |
Replace I'm not sure what you mean under "return s1*s2" since s1 and s2 are two transpositions (not symbolic variables) and their product is t2. So, if you want their product, simply take t2. If you want to get them as a list like [s1,s2], then replace t2=t1.reduced_word() with
R = W.simple_reflections()
t2 = [R[s] for s in t1.reduced_word()]
| 3 | No.3 Revision |
I'm not sure what you mean under "return s1*s2" since s1 and s2 are two transpositions (not symbolic variables) and their product is . So, if you want their product, simply take t2t1. If you want to get them as a list like t2t1[s1,s2], then replace t2=t1.reduced_word() with
R = W.simple_reflections()
t2 = [R[s] for s in t1.reduced_word()]
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.