• R/O
  • SSH

Commit

Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A small kernel of code for playing with Galois fields of arbitrary characteristic


Commit MetaInfo

Revisiona6db2850831c71848b2619693fb2d5049970aa09 (tree)
Time2016-05-01 11:13:27
AuthorEric Hopper <hopper@omni...>
CommiterEric Hopper

Log Message

Add comments with some nice primitive polynomials.

Change Summary

Incremental Difference

diff -r 04d1d84758fa -r a6db2850831c gfutil.py
--- a/gfutil.py Sat Apr 30 22:08:07 2016 -0400
+++ b/gfutil.py Sat Apr 30 22:13:27 2016 -0400
@@ -1,4 +1,24 @@
11 # <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+
222
323 def gen_groups(l, prime):
424 size = len(l)