- galois.Poly.__repr__() str
A representation of the polynomial and the finite field it’s over.
Tip
Use
set_printoptions()
to display the polynomial coefficients in degree-ascending order.Examples¶
In [1]: GF = galois.GF(7) In [2]: f = galois.Poly([3, 0, 5, 2], field=GF); f Out[2]: Poly(3x^3 + 5x + 2, GF(7)) In [3]: repr(f) Out[3]: 'Poly(3x^3 + 5x + 2, GF(7))'