[GAP Forum] permutations and transformations

Sergei Haller Sergei.Haller at math.uni-giessen.de
Tue Jul 13 12:24:55 BST 2004


On Tue, 13 Jul 2004, João Araújo (JA) wrote:

JA> Dear GAP Forum,
JA> 
JA> Is there any way of automatically translate the permutation (1,2,3) to the
JA> transformation
JA> 
JA> Transformation([2,3,1])?

something like that?

    gap> d := 5;;
    gap> S := SymmetricGroup(5);;
    gap> p := Random(S);
    (1,5,2)(3,4)
    gap> t := Transformation( List([1..d], x->x^p ) );
    Transformation( [ 5, 1, 4, 3, 2 ] )



Best wishes,

        Sergei
-- 
--------------------------------------------------------------------  -?)
         eMail:       Sergei.Haller at math.uni-giessen.de               /\\
-------------------------------------------------------------------- _\_V
Be careful of reading health books, you might die of a misprint.
                -- Mark Twain




More information about the Forum mailing list