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

Uploaded Source

Built Distributions

msmath-1.0.15-py3-none-any.whl (104.3 kB view details)

Uploaded Python 3

msmath-1.0.15-py2-none-any.whl (91.7 kB view details)

Uploaded Python 2

File details

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

File metadata

  • Download URL: msmath-1.0.15.tar.gz
  • Upload date:
  • Size: 102.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for msmath-1.0.15.tar.gz
Algorithm Hash digest
SHA256 92d4b55fcd144ebf285cbc59f81040e395319cf0742c48e91e3a131228b92a8c
MD5 5b8a1aa3f07c767acb5949a546593a96
BLAKE2b-256 50bb0baa49d5851ae378df56d4173ca172d02f95a3f799af421a5a1b81dc4d1a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msmath-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 104.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for msmath-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 450a31f9565b9c35cb67e4cfebbeb53560589b2d47e073af176134704f24218d
MD5 20636785e71d7f0ec5d4bc419dd589b6
BLAKE2b-256 c738a119eb08054bdacbd76b1ff64bb4c75389937477705de4c78e8a25e9af90

See more details on using hashes here.

File details

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

File metadata

  • Download URL: msmath-1.0.15-py2-none-any.whl
  • Upload date:
  • Size: 91.7 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.11

File hashes

Hashes for msmath-1.0.15-py2-none-any.whl
Algorithm Hash digest
SHA256 c92ed4abec6de4b51af726066583414114cfe2c4e6e5c99aff4ccf32fc9b57ee
MD5 9ee7d2454a4511a0decaecc76ffb8a67
BLAKE2b-256 dd9a57c34569f62de6d0349ae5d720612cb26b5ec716e4a2d4a59174c13c0579

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