Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

PermutationGroupMorphism_im_gens

I'm trying this code (taken from "Adventures in Group Theory"). I get an error, why ?

G=SymmetricGroup(4)
gensG=G.gens()
h=G([(1,3,4,2)]) # a 'random' element of G
gensG_h=[h*g*h^(-1) for g in gensG]

phi = PermutationGroupMorphism_im_gens(G,G,gensG,gensG_h)
phi.image(G)
phi.range()

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_78.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -- coding: utf-8 --\n" + _support_.preparse_worksheet_cell(base64.b64decode("cGhpID0gUGVybXV0YXRpb25Hcm91cE1vcnBoaXNtX2ltX2dlbnMoRyxHLGdlbnNHLGdlbnNHX2gp"),globals())+"\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module>

File "/private/var/folders/gm/z065gk616xg6g0xgn4c7_bvc0000gn/T/tmplbPZy2/___code___.py", line 2, in <module> exec compile(u'phi = PermutationGroupMorphism_im_gens(G,G,gensG,gensG_h) File "", line 1, in <module>

TypeError: __init__() takes at most 4 arguments (5 given)