> PolynomialRing(ZZ, 'x')

This is only an aside, but I should probably warn that (unlike var,
say) this doesn't change x, so it might not do what you're thinking.

x is still an Expression, an element of the Symbolic Ring, and so f is
also an Expression.  You probably want to use something like

sage: R.<x> = PolynomialRing(ZZ)
sage: parent(x)
Univariate Polynomial Ring in x over Integer Ring
sage: f=x^3 + A*x +B
sage: parent(f)
Univariate Polynomial Ring in x over Integer Ring

or R.<x> = ZZ[] or something.


Doug

-- 
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

Reply via email to