-
classmethod galois.Poly.One(field: Type[Array] | None =
None
) Poly Constructs the polynomial \(f(x) = 1\) over \(\mathrm{GF}(p^m)\).
Examples¶
Construct the one polynomial over \(\mathrm{GF}(2)\).
In [1]: galois.Poly.One() Out[1]: Poly(1, GF(2))
Construct the one polynomial over \(\mathrm{GF}(3^5)\).
In [2]: GF = galois.GF(3**5) In [3]: galois.Poly.One(GF) Out[3]: Poly(1, GF(3^5))