- class property galois.FieldArray.characteristic : int
The prime characteristic \(p\) of the Galois field \(\mathrm{GF}(p^m)\).
Notes¶
Adding \(p\) copies of any element will always result in 0.
Examples¶
In [1]: galois.GF(2).characteristic Out[1]: 2 In [2]: galois.GF(2**8).characteristic Out[2]: 2 In [3]: galois.GF(31).characteristic Out[3]: 31 In [4]: galois.GF(7**5).characteristic Out[4]: 7