> On Sat, Mar 24, 2012 at 08:52:04PM -0400, msh...@math.vt.edu wrote: >> Now you should get >> >> sage: W=WeylGroup(['A',2]) >> sage: w=W.from_reduced_word([1,2,1]) >> sage: w.inversions() >> [alpha[1], alpha[1] + alpha[2], alpha[2]] > > Sorry for the slow answer. Here W is a Weyl group implemented as a > group of matrices acting on some root lattice realization L. In that > case, I have the feeling that it would be more natural if a method of > W (or of it's elements) returning some roots would return then as > elements of L. > > Other feelings anyone?
To me it feels more natural to have the output on the basis of simple roots, rather than the ambient space. Is there now a simple way to convert a vector in the ambient space to the root basis? Best, Anne -- You received this message because you are subscribed to the Google Groups "sage-combinat-devel" group. To post to this group, send email to sage-combinat-devel@googlegroups.com. To unsubscribe from this group, send email to sage-combinat-devel+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sage-combinat-devel?hl=en.