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 hashes)

Uploaded Source

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