The coefficient of x^n.
12.2. The packed word representation
A GF2Poly is an array of 64-bit words carrying a normalization
invariant: bit j of word i is the coefficient of x^(64·i + j),
and the array stores no trailing zero word, so equal polynomials have
equal word arrays.
Hex.GF2Poly
The coefficient and degree accessors read the packed bits back out.
Hex.GF2Poly.coeff returns the coefficient of xⁿ as a Bool,
Hex.GF2Poly.degree? returns the degree of a nonzero polynomial,
and Hex.GF2Poly.degree defaults the zero polynomial to 0.
The degree of a nonzero polynomial, if any.
The degree of a polynomial, defaulting to 0 for the zero polynomial.
The simplest builders are Hex.GF2Poly.zero,
Hex.GF2Poly.one, Hex.GF2Poly.ofUInt64 (a single packed
word) and Hex.GF2Poly.monomial (the bare monomial xⁿ).
Addition is coefficientwise XOR, and the two shift operations multiply
or divide by a power of x.
Addition in F_2[x] is coefficientwise XOR.
Multiply by x^k.