Skip to main content

Field Zp module

Project description

Short description

The module provides a realization of field Zp (from algebra) where p is prime

Module stuff:

  1. Zp.Zp - field class

  2. Zp.example - example function

Examples

>>> from Zp import Zp

>>> F = Zp(5)

>>> F

Z/5

>>> F(3)

3

>>> F[2]

2

>>> a, b = F(2), F(3)

>>> a * b

1

>>> a / b

4

>>> list(F)

[0, 1, 2, 3, 4]

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

Zp-0.2.tar.gz (2.2 kB view details)

Uploaded Source

File details

Details for the file Zp-0.2.tar.gz.

File metadata

  • Download URL: Zp-0.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Zp-0.2.tar.gz
Algorithm Hash digest
SHA256 021b74cc3ba9a6c5f3c58f653011549fe4f63114a3e777a2ca90e31d5e825bec
MD5 06c0de5af3ce402e8ab5e01243507c7f
BLAKE2b-256 48a7662aa3e5c639dd32e3ef33f44e2867394d54002cb8774b5e35f379af0430

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