Skip to main content

No project description provided

Project description

msmath package

mathematical Python classes

Classes implementing

  • finite fields (ffield.py)
  • Z_m finite rings (fring.py)
  • rationals: real, complex, quaternion (rational.py)
  • quaternions (quaternion.py)
  • binary matrices and matrices over any ring (matrix.py)
  • single-variable polynomials and rational functions with coefficients in any field (poly.py)
  • undirected graphs (graph.py)
  • bitstrings (bitstrings.py)

Support modules:

  • conversions.py: utilities for Python 2 and 3 compatibility
  • numfuns.py: assorted numerical functions
  • ffpoly.py: functions to enumerate irreducible polynomials mod p

Demonstration modules:

  • bch.py: create BCH codes using the classes
  • share.py: secret sharing using finite fields
  • optable.py: create a printable op table for a finite ring

Standalone test programs for the various classes are included:

  • test_bitstring.py tests bitstring classes
  • test_ffield.py primarily tests ffield.py, but also uses matrix.py and poly.py
  • test_matrix.py primarily tests matrix.py, but also uses poly.py and rational.py
  • test_poly.py primarily tests poly.py, but also uses ffield.py and rational.py
  • test_rational.py tests rational classes

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

msmath-1.0.21.tar.gz (129.5 kB view details)

Uploaded Source

Built Distributions

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

msmath-1.0.21-py3-none-any.whl (105.0 kB view details)

Uploaded Python 3

msmath-1.0.21-py2-none-any.whl (92.3 kB view details)

Uploaded Python 2

File details

Details for the file msmath-1.0.21.tar.gz.

File metadata

  • Download URL: msmath-1.0.21.tar.gz
  • Upload date:
  • Size: 129.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for msmath-1.0.21.tar.gz
Algorithm Hash digest
SHA256 60c597275b5c1c562196bc42dff5886d8f9e3c2ba1d49b28b5c082d4c4b11f66
MD5 108932fbf1c3535cc2932f1eb15ed5e7
BLAKE2b-256 802a8a6f77ff692ec34d0df2ddc2159e0e5ad377abd51311164b4c9ab64b4edd

See more details on using hashes here.

File details

Details for the file msmath-1.0.21-py3-none-any.whl.

File metadata

  • Download URL: msmath-1.0.21-py3-none-any.whl
  • Upload date:
  • Size: 105.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for msmath-1.0.21-py3-none-any.whl
Algorithm Hash digest
SHA256 3fd82a8c78df5bd9484e8fdc314f502ed5a71be9a30d84d7f390b42862831dde
MD5 18ea56b310756f72761b4ab7cf6fdfe7
BLAKE2b-256 8df8972391591b755dfdcaf5cfdf2fbbb91c89601bb64e50b7d8b9c6135e7f0d

See more details on using hashes here.

File details

Details for the file msmath-1.0.21-py2-none-any.whl.

File metadata

  • Download URL: msmath-1.0.21-py2-none-any.whl
  • Upload date:
  • Size: 92.3 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.1

File hashes

Hashes for msmath-1.0.21-py2-none-any.whl
Algorithm Hash digest
SHA256 dccebae47a2a3d32f3f7144d126fe0ce87e6d9dae045dc1959605eb05cf4ae0d
MD5 88426ab28f3ca441d31ff1c776ef17d7
BLAKE2b-256 4ab3fbb65c3847cf9ac42a2ee09c458b86e0c7a496e37d8f1ca4b97a61580570

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