I'm looking through the Group Theory and Sage: Primer,  and I generate
an error with the example on symmetric groups (page 5 of the pdf.)

{{{
G = SymmetricGroup(5)
sigma = G("(1,3)(2,5,4)")
rho = G([(1,4), (1,5)])
rho^-1*sigma*rho
}}}

In particular, the rho assignment generates:

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

  File "/private/var/folders/OM/OMxnBYmvGKCvOdlQUspKnE+++TI/-Tmp-/
tmpW4Iqmw/___code___.py", line 3, in <module>
    exec compile(u'rho = G([(_sage_const_1 ,_sage_const_4 ),
(_sage_const_1 ,_sage_const_5 )])
  File "", line 1, in <module>

  File "/Users/johnthurber/sage/sage-4.6/local/lib/python2.6/site-
packages/sage/groups/perm_gps/permgroup.py", line 568, in __call__
    return self._element_class()(x, self, check=check)
  File "permgroup_element.pyx", line 329, in
sage.groups.perm_gps.permgroup_element.PermutationGroupElement.__init__
(sage/groups/perm_gps/permgroup_element.c:3002)
  File "/Users/johnthurber/sage/sage-4.6/local/lib/python2.6/site-
packages/sage/interfaces/expect.py", line 1090, in __call__
    return cls(self, x, name=name)
  File "/Users/johnthurber/sage/sage-4.6/local/lib/python2.6/site-
packages/sage/interfaces/expect.py", line 1517, in __init__
    raise TypeError, x
TypeError: Gap produced error output
Permutation: cycles must be disjoint and duplicate-free
}}}

Can anyone replicate this error?  Does Sage require disjoint cycle
representations rather than transpositions?

-John

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to