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
Built Distribution
Close
Hashes for zn_operation_table-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42167bcdb1dd038f415f14f875cfa502a0c3b17a0d85a0f61de0f6917ed9d827 |
|
MD5 | 7505cc9f36e04dc98cdfff59c539beba |
|
BLAKE2b-256 | 6987eff32753de83aed238933ebfcca63d0252e0b38350b08addbb791d0384f1 |