The following shows what I'd like to do: F.<x>=GF(2^8,name='x') R.<y>=PolynomialRing(Zmod(2)) p = F.random_element() p.subs(x=y)
Basically, I have an object which is created as an element of a finite field, which I then need to treat as an element of a ring. If I try: pp = p.polynomial() pp.subs(x=y) that produces an error. Clearly I could obtain all the coefficients of p and create a new polynomial from them, but that seems a bit clumsy. Is there a more direct way? Thanks, Alasdair -- 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
