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.4.tar.gz (2.8 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.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zn_operation_table-1.1.4.tar.gz
  • Upload date:
  • Size: 2.8 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.4.tar.gz
Algorithm Hash digest
SHA256 7d28c58f3e464087caea60e8119569368b7216009c0f6f0ffe1d8bf5e182e0b4
MD5 7b559dea1c3c24d2da21eea94076e8bf
BLAKE2b-256 468c5190571bfe8a233e5927a29e7ca8137902fa1e1f4e0e7f4e9f2e6d7a9179

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zn_operation_table-1.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2057f135c10ded382955b351c7447f67e5e95f6a79e41041194233d375cc1717
MD5 d86716d2993a68ab34cf9a6c519d31de
BLAKE2b-256 8769c47e9b4ac0aaa39797e49c2a08f5c8f38935406585ca744eda5e43ccf38a

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