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

Uploaded Source

Built Distributions

msmath-1.0.11-py3-none-any.whl (103.5 kB view details)

Uploaded Python 3

msmath-1.0.11-py2-none-any.whl (90.9 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: msmath-1.0.11.tar.gz
  • Upload date:
  • Size: 127.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for msmath-1.0.11.tar.gz
Algorithm Hash digest
SHA256 c261e321dfc677515e5645739922b8059fd03ab96e76fb07ba400a7592a59064
MD5 9e5ca88d6e0ab51a86459a6b1bba3599
BLAKE2b-256 21f35244700d596f0d694ba9427d9a245dc284ce22186b1dad5548fbdcdfe07f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msmath-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 103.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for msmath-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3d176300a53e03300f3240ce26439011b9dfed355a527fe421d81b36334258cd
MD5 b8d102aa1ef840e8415bfc24013e768d
BLAKE2b-256 78047ff9491e26f009576982b01c3c7d5ca5291336bc1adab672dc292310272e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msmath-1.0.11-py2-none-any.whl
  • Upload date:
  • Size: 90.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for msmath-1.0.11-py2-none-any.whl
Algorithm Hash digest
SHA256 45fa8e5a42ebfe31675432c762a71ae80e5e1dff86b3925786131944622ca03c
MD5 a6db85c3535da619f7cf18d825792f95
BLAKE2b-256 2abfb5c27d69df0217bb4375f56be09b0f871853c535bf14d58b3f0d1c2f1b8a

See more details on using hashes here.

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