Skip to content

saromanov/group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

group

Working with groups. Basic operations, and information. Now suports only cyclic and symmetric groups

Build Status Coverage Status

Why?

This is mostly for better understanding Group theory.

Usage

import groups
gr1 = groups.Sn(4) # Create symmetric group
gr2 = groups.Zn(4) # Create cyclic group
# Check is groups is Abelian
gr1.is_abelian()
gr2.is_abelian()

API

group.setBinOp

Set binary operation to the group. By default is is modulo operation

import groups
gr = groups.Zn(4)
gr.set_binop(lambda (x,y): x + y)

group.is_abelian

Return True if group is abelian and False otherwise

group.inverse

Return inverse element if exist

group.elements

Return elements of the group

About

Group theory in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published