File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ of this package is to make them available through a generic python
14
14
interface. The package consists of a single module containing a single
15
15
function that returns a dict of dicts, ``conway_polynomials.database() ``.
16
16
The dictionary's format is ``{p => {n => coefficients}} ``, where ``p ``
17
- represents your prime and ``n `` your degree. The list of coefficients
17
+ represents your prime and ``n `` your degree. The tuple of coefficients
18
18
is returned in ascending order; that is, the first coefficient (at
19
19
index zero) is for the constant (degree zero) term.
20
20
@@ -36,13 +36,13 @@ degree n=5::
36
36
>>> import conway_polynomials
37
37
>>> cpdb = conway_polynomials.database()
38
38
>>> cpdb[2][5]
39
- [ 1, 0, 2, 0, 0, 5]
39
+ ( 1, 0, 2, 0, 0, 5)
40
40
41
41
The result is cached, so subsequent computations should be fast even
42
42
if you call the function again::
43
43
44
44
>>> conway_polynomials.database()[5][5]
45
- [ 3, 4, 0, 0, 0, 1]
45
+ ( 3, 4, 0, 0, 0, 1)
46
46
47
47
Testing
48
48
=======
You can’t perform that action at this time.
0 commit comments