# Revision history [back]

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...

 2 No.2 Revision vdelecroix 5681 ●14 ●64 ●115 http://www.labri.fr/pe...

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...