Dears.
In this code
F.<a> = GF(2^(4))
PR = PolynomialRing(F,'X')
M = vector(PR,8)
#get a g1
g1 = (X + 1) * (X + a) * (X + a^3) * (X + a^5) * (X + a^5 + a^4 + a^3
+ a) * (X + a^6 + a^5 + a^4 + a^2) * (X + a^7 + a^2 + a + 1) * (X +
a^7 + a^6 + a^5 + a^3)
for i in range(self.8):
M[i]=g1.factor()[i]
I get
File "parent.pyx", line 941, in
sage.structure.parent.Parent.__call__ (sage/structure/parent.c:7102)
File "coerce_maps.pyx", line 82, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/
structure/coerce_maps.c:3254)
File "coerce_maps.pyx", line 77, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_ (sage/
structure/coerce_maps.c:3157)
File "/home/juaninf/Programas/sage/local/lib/python2.6/site-packages/
sage/rings/polynomial/polynomial_ring.py", line 410, in
_element_constructor_
return C(self, x, check, is_gen, construct=construct, **kwds)
File "polynomial_zz_pex.pyx", line 129, in
sage.rings.polynomial.polynomial_zz_pex.Polynomial_ZZ_pEX.__init__
(sage/rings/polynomial/polynomial_zz_pex.cpp:11334)
TypeError: unable to convert X + a^4 into the base ring
Please, How I can to fix this ...?
--
---------------------------------------------------------------------
Juan del Carmen Grados Vásquez
Laboratório Nacional de Computação Científica
Tel: +55 24 2233-6260
(http://www.lncc.br/)
http://juaninf.blogspot.com
---------------------------------------------------------------------
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org