65.8 PolyCodeword

PolyCodeword( obj [, n] [, F] )
PolyCodeword( obj, C )

PolyCodeword returns a polynomial or a list of polynomials over a Galois field, converted from obj. The object obj can be a vector, a string, a polynomial or a codeword. It may also be a list of those (even a mixed list).

In fact, the object obj is treated the same as in the function Codeword (see Codeword).

    gap> a := Codeword("011011");; PolyCodeword(a);
    Z(2)^0*(X(GF(2))^5 + X(GF(2))^4 + X(GF(2))^2 + X(GF(2)))
    gap> PolyCodeword( [ 0, 1, 2, 1, 2 ] );
    Z(3)^0*(2*X(GF(3))^4 + X(GF(3))^3 + 2*X(GF(3))^2 + X(GF(3)))
    gap> PolyCodeword( [ 0, 0, 0, 0], GF(9) );
    0*X(GF(3^2))^0 

Previous Up Top Next
Index

GAP 3.4.4
April 1997