=============================================================================
passagemath: Computational Group Theory with GAP
About SageMath
"Creating a Viable Open Source Alternative to
Magma, Maple, Mathematica, and MATLAB"
Copyright (C) 2005-2024 The Sage Development Team
https://www.sagemath.org
SageMath fully supports all major Linux distributions, recent versions of
macOS, and Windows (Windows Subsystem for Linux).
See https://doc.sagemath.org/html/en/installation/index.html
for general installation instructions.
About this pip-installable source distribution
This pip-installable source distribution passagemath-gap
is a small
distribution that provides modules that depend on the GAP system, see
https://www.gap-system.org
What is included
-
Cython interface to libgap <https://doc.sagemath.org/html/en/reference/libs/sage/libs/gap/libgap.html>
_
-
Pexpect interface to GAP <https://doc.sagemath.org/html/en/reference/interfaces/sage/interfaces/gap.html>
_
-
numerous modules with build-time dependencies on GAP, see https://github.com/passagemath/passagemath/blob/main/pkgs/sagemath-gap/MANIFEST.in
-
the binary wheels on PyPI ship a prebuilt copy of GAP 4.13.1
Examples
A quick way to try it out interactively::
$ pipx run --pip-args="--prefer-binary" --spec "passagemath-gap[test]" IPython
In [1]: from sage.all__sagemath_modules import *
In [2]: from sage.all__sagemath_gap import *
In [3]: G = libgap.eval("Group([(1,2,3), (1,2)(3,4), (1,7)])")
In [4]: CG = G.ConjugacyClasses()
In [5]: gamma = CG[2]
In [6]: g = gamma.Representative()
In [7]: CG; gamma; g
[ ()^G, (4,7)^G, (3,4,7)^G, (2,3)(4,7)^G, (2,3,4,7)^G, (1,2)(3,4,7)^G, (1,2,3,4,7)^G ]
(3,4,7)^G
(3,4,7)