Re: [sage-support] Substituting variables from two different structures

2010-10-20 Thread Francois Maltey
Hi Alasdair, F.=GF(2^8,name='x') R.=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) And what do you think

[sage-support] Substituting variables from two different structures

2010-10-20 Thread Alasdair
The following shows what I'd like to do: F.=GF(2^8,name='x') R.=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)