ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 01 Jun 2020 00:56:29 +0200Convert between different ways of expressing permutationshttps://ask.sagemath.org/question/51663/convert-between-different-ways-of-expressing-permutations/ Suppose I have two permutations x and y, given in one line notation (e.g. x=[2,1,4,3] and y=[3,2,1,4]). How would I go about computing e.g. the Kazhdan-Lusztig polynomial P<sub>x,y</sub>(q) in sage? The KL polynomial requires as input representing symmetric group elements as products of simple reflections and I do not know how to (using a computer) convert between these different ways of expressing a permutation. How does one do this in sage?Peter MMon, 01 Jun 2020 00:56:29 +0200https://ask.sagemath.org/question/51663/