From d536fa60ec3ffd72c540d8c400fe8669eea12e8d Mon Sep 17 00:00:00 2001 From: Sergio Siccha Date: Tue, 14 May 2019 15:05:28 +0200 Subject: [PATCH] doc: fix doc of CompositionMapping Clarifies the order in which the arguments are composed. Adds an example. --- lib/mapping.gd | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/mapping.gd b/lib/mapping.gd index 0e39b71ae4..33d21ca29a 100644 --- a/lib/mapping.gd +++ b/lib/mapping.gd @@ -1204,11 +1204,13 @@ DeclareGlobalFunction("CompositionMapping2General"); ## allows one to compose arbitrarily many ## general mappings, ## and delegates each step to . +## The result is a map that maps an element first under the last argument, +## then under the penultimate argument and so forth. ##

## Additionally, the properties and -## are maintained; -## if the source of the i+1-th general mapping is identical to -## the range of the i-th general mapping, +## are maintained. +## If the range of the i+1-th argument is identical to +## the range of the i-th argument, ## also and are maintained. ## (So one should not call directly ## if one wants to maintain these properties.) @@ -1220,6 +1222,20 @@ DeclareGlobalFunction("CompositionMapping2General"); ## decompose elements of the source of map2 into generators) or as an ## (iterated) composition ## (see ). +##

+## f := GroupHomomorphismByImages(CyclicGroup(IsPermGroup, 2), +## > CyclicGroup(IsPermGroup, 1)); +## [ (1,2) ] -> [ () ] +## gap> g := GroupHomomorphismByImages(CyclicGroup(IsPermGroup, 6), +## > CyclicGroup(IsPermGroup, 2)); +## [ (1,2,3,4,5,6) ] -> [ (1,2) ] +## gap> CompositionMapping(f, g); +## [ (1,2,3,4,5,6) ] -> [ () ] +## gap> CompositionMapping(g, f); +## [ (1,2) ] -> [ () ] +## ]]> +##

## ## ## <#/GAPDoc>