On Wednesday, January 1, 2014 11:07:10 AM UTC-8, Neda wrote:
>
> Hello, 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:
>
In the future, please include the command that led to the error. In this
case it seems to be "H.order()".
Unfortunately, by explicitly asking for libgap(G), you have chosen to work
directly with gap objects, so you'll have to talk Gap to them to get
results, and Gap tends to capitalize its commands:
sage: H.Order()
6
In general one could try to get back into sage-land, but in this case you
get an informative error
sage: H.sage()
NotImplementedError: cannot construct equivalent Sage object
The fact that H.order even exists seems a bit of an accident:
sage: H.order?
Type: builtin_function_or_method
String Form:<built-in method order of sage.libs.gap.element.GapElement
object at 0x56747d0>
Definition: H.order(self)
Docstring:
Return the additive order of self.
This is deprecated; use "additive_order" instead.
EXAMPLES:
sage: a = Integers(12)(5)
sage: a.order()
doctest... DeprecationWarning: The function order is deprecated for
ring elements; use additive_order or multiplicative_order instead.
See http://trac.sagemath.org/5716 for details.
12
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.