Hi all,

I'm using Sage-5.13 on Virtual Box 4.3.8 and I want to use the inbuilt 
polynomial methods for testing irreducibility, factorizing and homogenizing 
polynomials. I know that I need to coerce between univariate and 
multivariate polynomial rings to do this, but whenever I try this the image 
under coercion has parent <class 'sympy.core.add.Add'>, instead of the 
multivariate polynomial ring. The code I have used is below.

R.<u> = ZZ['u']
S.<u,v> = ZZ['u,v']
f
g = S(f)
parent(g)

I'm not sure if it's relevant but my polynomial f is defined by taking a 
list of coefficients and then adding relevant powers of u multiplied by 
each coefficient to an initial 0 polynomial. I mention this because if I 
define the polynomial explicitly then my commands work as expected.

Thanks,
Tristan

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to