Skip to main content

Simple package to obtain Zn's equivalence classes sum or product operation tables.

Project description

Zn equivalence classes operation table generator

Simple package to obtain Zn's equivalence classes sum or product operation tables.

The build_table method takes an integer (n) and 'sum' or 'prod' as first and second arguments. It will return a nxn matrix with the result of operating every item with each other.

Installation:

pip install zn_operation_table

Example

build_table(3, 'sum')

Will return:

[[0,1,2], [1,2,0], [2,0,1]]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zn_operation_table-1.1.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

zn_operation_table-1.1.3-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page