On 17 April 2012 08:15, P Purkayastha wrote:
> Hi,
> The following piece of code seems to error out:
> sage: C = BinaryGolayCode()
> sage: c = C[1]; c.change_ring(ZZ) # This works
> (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1)
> sage: c = C[20]; c.change_ring(ZZ) # Thi
Hi,
The following piece of code seems to error out:
sage: C = BinaryGolayCode()
sage: c = C[1]; c.change_ring(ZZ) # This works
(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1)
sage: c = C[20]; c.change_ring(ZZ) # This gives error
...
TypeError: element (= [0, 0, 1, 0, 1, 0,