Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hello,

Finite chain rings are not (yet) supported in Sage. Someone posted a patch on it on the updtae system (see: http://trac.sagemath.org/ticket/13398).

I know it's not exactly the issue here, but for now you can try the following:

sage: F = GF(2) sage: R.<x> = F[] sage: g = 1+x+x^2+x^3+x^4 sage: C = codes.CyclicCode(5, g)

to build your code (sorry about the bad formatting). Of course, it's over GF(2), not over a chain ring...

Hello,

Finite chain rings are not (yet) supported in Sage. Someone posted a patch on it on the updtae system (see: http://trac.sagemath.org/ticket/13398).

I know it's not exactly the issue here, but for now you can try the following:

sage:  F = GF(2) GF(2)
sage: R.<x> = F[] F[]
sage: g = 1+x+x^2+x^3+x^4 1+x+x^2+x^3+x^4
sage: C = codes.CyclicCode(5, g)g)

to build your code (sorry about the bad formatting). Of course, it's over GF(2), not over a chain ring...