On Tue, Mar 05, 2013 at 03:11:00AM -0800, tom d wrote: > I think longest_element is fine;
Ok for me, unless someone finds something better. > long_word indicates that there will be a word returned instead of > an element, which is maybe not what we're after here. +1 Thanks Kannappan for your work on this! By the way: would you mind using the occasion to move this method to the CoxeterGroups category? Of course, calling "W.longest_element()" for an infinite coxeter group W is not a wise thing to do; but we recently had the need for computing longest elements for finite parabolic subgroups and ``W.longest_element(I)`` would have been useful. Ideally there would be a warning or error if called without argument or on an infinite parabolic subgroup, but that might be tricky to detect. Cheers, Nicolas -- Nicolas M. ThiƩry "Isil" <nthi...@users.sf.net> http://Nicolas.Thiery.name/ -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.