Field Zp module
Project description
Short description
The module provides a realization of field Zp (from algebra) where p is prime
Module stuff:
Zp.Zp - field class
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
Release history Release notifications | RSS feed
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)