Error with Automorphism group

asked 2014-01-01 06:00:14 -0600

Babgen gravatar image

updated 2014-01-01 06:46:46 -0600

kcrisman gravatar image

I use this for computing automorphism group:

G = SymmetricGroup(3)

H = libgap(G).AutomorphismGroup()

but when I want to compute order of automorphism group, I cant compute and I have this error:

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

  File "/tmp/tmpm9uLkv/___code___.py", line 5, in <module>
    exec compile(u'H.order()
  File "", line 1, in <module>

  File "element.pyx", line 1867, in sage.structure.element.RingElement.order (sage/structure/element.c:15911)
  File "element.pyx", line 1873, in sage.structure.element.RingElement.additive_order (sage/structure/element.c:15968)
NotImplementedError
edit retag flag offensive close merge delete

Comments

I've encountered some stuff like this in trying to answer your other question, and I'm very interested in an answer as well. Note that many of the libgap methods appear to be GAP functions turned into methods, which could be part of the issue with other errors I've seen along these lines.

kcrisman gravatar imagekcrisman ( 2014-01-01 06:47:44 -0600 )edit

@kcrisman If order() replace with Order(), then the error eliminates.

Babgen gravatar imageBabgen ( 2014-01-01 19:26:09 -0600 )edit

This is sad and should be reported as a bug. There is something very wrong with libgap or the objects it returns to sage. Order is probably a gap function which is why it works.

ppurka gravatar imageppurka ( 2014-01-02 01:57:45 -0600 )edit