Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Accessing GAP's in function through the C Interface

Is there a way to access GAP's in function through Sage's C Interface to GAP?

gap> Identity(G) in G;
true

Accessing GAP's in function through the C Interface

Is there a way to access GAP's in function through Sage's C Interface to GAP?

gap> Identity(G) in G;
true

EDIT:

I was wondering how to call this from Sage:

sage: G = libgap.SymmetricGroup(5)
sage: g = libgap.eval('(1,2,3)(4,5)')

How do I test if g is in G?