Skip to main content

mathematical Python classes: finite fields, rationals, quaternions, matrices, polynomials, graphs, bitstrings

Reason this release was yanked:

failed to install in python2

Project description

msmath package

mathematical Python classes

Classes to implement 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), and single-variable polynomials and rational functions with coefficients in any field (poly.py).

Also, a class to implement undirected graphs (graph.py), and a class to implement 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.6.tar.gz (108.3 kB view details)

Uploaded Source

Built Distribution

msmath-1.0.6-py3-none-any.whl (102.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: msmath-1.0.6.tar.gz
  • Upload date:
  • Size: 108.3 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.6.tar.gz
Algorithm Hash digest
SHA256 ed38a0e40f44b480ad9aa98dba97e8b8d64cea7342b15e2f29baa9232c44d052
MD5 3129c19304a2485b03f318e1aafa4cb5
BLAKE2b-256 f1503037a10fb21732baca18e5cdb3bb8670b3696ca0f80b1da6fed364518a1b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msmath-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 102.1 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f889e3289a696bab6f3affba3988a68df51ec0928ee948fc1d11d6778472fbac
MD5 45f1ec3290eb5260df9518ee413075d8
BLAKE2b-256 6a86c45f45b45def6b4a145ad0187f1a990e9d4493d00d19b840e8f6218c818c

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