- property galois.BCH.generator_poly : Poly
The generator polynomial \(g(x)\) whose roots are
roots
.Examples¶
In [1]: bch = galois.BCH(15, 7); bch Out[1]: <BCH Code: [15, 7, 5] over GF(2)> In [2]: bch.generator_poly Out[2]: Poly(x^8 + x^7 + x^6 + x^4 + 1, GF(2)) # Evaluate the generator polynomial at its roots in GF(2^m) In [3]: bch.generator_poly(bch.roots, field=bch.field) Out[3]: GF([0, 0, 0, 0], order=2^4)