Module: sage.interfaces.gap
SAGE provides an interface to the GAP system. This system provides extensive group theory, combinatorics, etc.
The GAP interface will only work if GAP is installed on your computer; this should be the case, since GAP is included with SAGE. The interface offers three pieces of functionality:
gap_console()
- A function that dumps you
into an interactive command-line GAP session.
gap(expr)
- Evaluation of arbitrary GAP
expressions, with the result returned as a string.
gap.new(expr)
- Creation of a SAGE object that wraps a
AP object. This provides a Pythonic interface to GAP. For example,
if f=gap.new(10)
, then f.Factors()
returns the prime
factorization of