A small kernel of code for playing with Galois fields of arbitrary characteristic
Revision | a6db2850831c71848b2619693fb2d5049970aa09 (tree) |
---|---|
Time | 2016-05-01 11:13:27 |
Author | Eric Hopper <hopper@omni...> |
Commiter | Eric Hopper |
Add comments with some nice primitive polynomials.
@@ -1,4 +1,24 @@ | ||
1 | 1 | # <gf.gfMeta(5, (1, 4, 1, 4, 1, 4, 1))((0, 0, 0, 0, 1, 3))> |
2 | +# (%i58) p2;p3;p4;p5;p6;p7; | |
3 | +# Evaluation took 0.0000 seconds (0.0000 elapsed) | |
4 | +# 15 | |
5 | +# (%o58) x - x | |
6 | +# Evaluation took 0.0000 seconds (0.0000 elapsed) | |
7 | +# 6 5 4 3 2 | |
8 | +# (%o59) x + x + x + 2 x + 4 x + 3 | |
9 | +# Evaluation took 0.0000 seconds (0.0000 elapsed) | |
10 | +# 6 5 2 | |
11 | +# (%o60) x + x + 2 x + 4 x + 4 | |
12 | +# Evaluation took 0.0000 seconds (0.0000 elapsed) | |
13 | +# 6 5 4 3 2 | |
14 | +# (%o61) x + 4 x + x + 4 x + x + 4 x + 2 | |
15 | +# Evaluation took 0.0000 seconds (0.0000 elapsed) | |
16 | +# 6 5 4 2 | |
17 | +# (%o62) x + 4 x + 4 x + 4 x + 1 | |
18 | +# Evaluation took 0.0000 seconds (0.0000 elapsed) | |
19 | +# 6 5 4 3 2 | |
20 | +# (%o63) x + x + x + 3 x + 3 x + 3 x + 4 | |
21 | + | |
2 | 22 | |
3 | 23 | def gen_groups(l, prime): |
4 | 24 | size = len(l) |