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
?
What is G?
\in
is membership test. Another form of calling it would be\in( Identity(G), G );
. It does not matter in this example what isG
, but if you need something for the test, try e.g.\in((1,2),SymmetricGroup(3));
.Edited to clarify that I wanted to call this from Sage.