Skip to main content

GroupsMath – v0.5.0

GroupsMath Logo

GroupsMath is a Python module for constructing, studying, and manipulating finite and infinite groups.

The project aims to provide a simple and intuitive interface for working with finite groups and their algebraic properties.

Note: GroupsMath is currently under active development. Its API is still evolving and may change before version 1.0.0.


Installation

GroupsMath is currently distributed through PyPI and Github. To install the latest released version from PyPI, run:

pip install groupsmath

Also, you can install the latest development version directly from GitHub:

pip install git+https://github.com/MarioSultan/GroupsMath.git

or visit https://github.com/MarioSultan/GroupsMath and download all the files.


Examples

A program in GroupsMath

import groupsmath as gm
from groupsmath.precooked import S3, A4, C3

#Calculating properties of the group S3

print(S3.order())               # 6
print(S3.elements)              # ['e', '(23)', '(12)', '(123)', '(132)', '(13)']
print(S3.element_orders())      # [1, 2, 2, 3, 3, 2]
print(S3.is_cyclic())           # False
print(S3.is_abelian())          # False

#Generating Cayley table of S3

S3.cayley_table()

#Generating the Cayley table of the direct product A4xC3

G = A4 * C3                     # Product group
G.cayley_table()

#Generating the group of units U1200 and its Cayley table

U1200 = gm.units_group(1200)    # Create the group
U1200.cayley_table()

Cayley table of $S_3$

S3 table

Cayley table of $A_4\times C_3$

A4xC3 table

Cayley table of $U_{1200}$

U1200 table


Features

GroupsMath is designed to provide tools for working with finite (and infinite) groups, including:

GROUPS:

  • Construction of finite groups with classes CayleyGroup and ExplicitGroup.
  • Determination of the order of a group and its elements.
  • Operation with group elements (multiplication, inverse, powers, ...)
  • Computation of Cayley tables with matplotlib.pyplot.
  • Detection of algebraic properties such as cyclicity and commutativity.
  • Computation and exploration of other structural properties of finite groups.
  • Predefined group families in the library groupsmath.precooked, such as $C_n$, $S_n$, $A_n$, $D_n$, $V_4$, $Q_8$, ...

SUBGROUPS:

  • Study of subgroups (order, cosets, normal subgroups, quotients, ...).
  • Normal subgroups.
  • Quotient groups $Q=G/H$.

AUTOMORPHISMS:

  • Class Automorphism and automorphism functions.
  • Automorphisim functions $f:A\to\text{Aut}(B)$.
  • Automorphism groups $\text{Aut}(G)$.

PRODUCTS:

  • Direct product of two groups $G\times H$.
  • Semidirect product of two groups $G\rtimes H$.

MATRIX GROUPS

  • Library groupsmath.matrixgroups and class MatrixGroup.
  • Groups generated by matrices: $GL$, $SL$, $O$, $SO$, $U$, $SU$ and $Sp$.
  • Matrix groups over finite fields $\mathbb{F}_p$, with $p$ prime.

The available functionality will expand as the project develops.


Coming soon

The GroupsMath team is currently working on theese ideas:

  • Presentation of groups, generators and class PresentedGroup.
  • Free groups $F_n$ and free products.
  • Optimization of actual features.
  • Representation theory.
  • and much more...

Documentation

Detailed documentation is available in the docs directory of GitHub and it is developed alongside the library.


Project status

GroupsMath is currently under active development.

The project has successfully transitioned to an object-oriented interface centered around the Group class. The legacy function-based interface is being removed for future versions. The API should therefore be considered unstable until the 1.0.0 release, and breaking changes may occur between development versions.


Contributing

Contributions, suggestions, and bug reports are welcome. If you find a bug or have an idea for improving GroupsMath, please open an issue in the GitHub repository.

Metadata

Release files for GroupsMath 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for GroupsMath 0.5.0
File Size Uploaded
groupsmath-0.5.0.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for GroupsMath 0.5.0
File Interpreter ABI Platform
groupsmath-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.1 kB

Release files / groupsmath-0.5.0.tar.gz

Download URL groupsmath-0.5.0.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e26c95c8928c2f4a2045532e3eff72a83d559de106747d880a634e8ab91e9f6a
BLAKE2b-256 checksum
How to use checksums
3dcc2d804dd404a3218500dbc9e064b0fffa8f52981883f3084c992de4708164
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release files / groupsmath-0.5.0-py3-none-any.whl

Download URL groupsmath-0.5.0-py3-none-any.whl
Size 21.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a8e794b40883fc827652cd97968e064e470d88e3bfe233469f5dfb61dfc9fdf
BLAKE2b-256 checksum
How to use checksums
118f6b2169c7bd92b1da050fde75d68db6759577542d86a3f29c4bd84aed4d92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.0

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

This release

0.5.0 This release

2 release files

0.4.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page