Hi Alasdair,
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)
And what do you think about "R(pp)".
I get a polynom in y but perhaps the base_ring is not the good one.
Some domains has also ".change_ring()" method.
Have a nice day !
Francois (in France)
--
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org