# Revision history [back]

### How to create a morphism between a permutation groups and a matrix groups by explicitley giving the map?

I looking to define a homomorphism between a permutation group to another permutation group by defining the map explicitly. Same between matrix groups? Can some body help? For example The following codes gives an error

sage: G = SymmetricGroup(5) sage: r = G('(1,3,5,2,4)') sage: s = G('(2,5),(3,4)') sage: H = G.subgroup([r,s]) sage: D = DihedralGroup(5) sage: (a,b)= D.gens() phi = PermutationGroupMorphism(H,D, [a,b]) phi(x)

 2 None tmonteil 24118 ●27 ●175 ●444 http://wiki.sagemath.o...

### How to create a morphism between a permutation groups and a matrix groups by explicitley giving the map?

I looking to define a homomorphism between a permutation group to another permutation group by defining the map explicitly. Same between matrix groups? Can some body help? For example The following codes gives an error

sage: G = SymmetricGroup(5)
sage: r = G('(1,3,5,2,4)')
sage: s = G('(2,5),(3,4)')
sage: H = G.subgroup([r,s])
sage: D = DihedralGroup(5)
sage: (a,b)= D.gens()
phi = PermutationGroupMorphism(H,D, [a,b])
phi(x)phi(x)

 3 retagged tmonteil 24118 ●27 ●175 ●444 http://wiki.sagemath.o...

### How to create a morphism between a permutation groups and a matrix groups by explicitley giving the map?

I looking to define a homomorphism between a permutation group to another permutation group by defining the map explicitly. Same between matrix groups? Can some body help? For example The following codes gives an error

sage: G = SymmetricGroup(5)
sage: r = G('(1,3,5,2,4)')
sage: s = G('(2,5),(3,4)')
sage: H = G.subgroup([r,s])
sage: D = DihedralGroup(5)
sage: (a,b)= D.gens()
phi = PermutationGroupMorphism(H,D, [a,b])
phi(x)