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 positive 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]]

build_table function

build_table(n, operation, headers, inversibles)

n: positive integer.
operation: 'sum' for class sum and 'prod' for class product.
headers: for row and column headers.
inversibles: tu use the given set's inversibles for the given operation.

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.5.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zn_operation_table-1.1.5-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file zn_operation_table-1.1.5.tar.gz.

File metadata

  • Download URL: zn_operation_table-1.1.5.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for zn_operation_table-1.1.5.tar.gz
Algorithm Hash digest
SHA256 cf5fbf0eb6ea4fbec4d9f4ee632ce723e0a0f1cb6802c0c22526159623cd2ca3
MD5 dc01c03ef302d6d7e0b3e40722de3377
BLAKE2b-256 068b922d3a784fa68b5029ec7c8cc90d36cfc9de0b6333ad2d2d2a843ea9ef7d

See more details on using hashes here.

File details

Details for the file zn_operation_table-1.1.5-py3-none-any.whl.

File metadata

  • Download URL: zn_operation_table-1.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.62.3 importlib-metadata/4.10.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.6

File hashes

Hashes for zn_operation_table-1.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f93ec308764e010e5c93e9f274522fb4b4937664135ab9de952b93f898724308
MD5 a66fef34a1c10da416605c5b7bb8c6cf
BLAKE2b-256 52f3cf412bf7145749f905e7c797b103b7932f3fa7ddfa669690fcf5871e50f3

See more details on using hashes here.

Supported by

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