First time here? Check out the FAQ!
answered 2017-07-13 23:17:10 +0100
This might be what you want
sage: G = libgap.SymmetricGroup(5) sage: g = libgap.eval('(1,2,3)(4,5)') sage: getattr(g, '\\in')(G) true sage: g = libgap.eval('(1,2,3)(4,5,6)') sage: getattr(g, '\\in')(G) false