Hi!
Define
sage: G = libgap.eval('Group([(3,4,5,6,7,8,9,10),(1,2)])')
(By the way, why does libgap.Group([(3,4,5,6,7,8,9,10),(1,2)]) not
work?)
In Gap, also in gap-via-pexpect, one can access the i-th generator of a
group (the count starts with 1) in the form G.i, but unfortunately this
doesn't work in libgap:
sage: G.1
Traceback (most recent call last):
...
AttributeError: name "gen" is not defined in GAP.
Explanation: Sage's preparser translates G.1 into G.gen(1), but libgap
doesn't know about gen. Apparently there is gap.gen defined, but not
libgap.gen.
(By the way: gap.gen?? behaves very strange, it shows the documentation
of chapter 7 entitled "Domains" of gap's documentation, and I need to
quit the viewer THREE TIMES to leave the documentation, and then I see
the documentation of the class GapFunction.)
Question 1: Is there an elegant way to access the first generator of G
than G.GeneratorsOfGroup()[0]?
Question 2: Do you think it would be a good idea to provide a libgap.gen
function, so that G.1 would return the first generator of G?
Best regards,
Simon
--
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 https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.