Re: [sage-support] method .polynomial() gives unexpected answer

2011-07-25 Thread Julian Rüth
Apparently, this is caused by a problem in degree() which is used in polynomial(). In your example: sage: pol2.degree(q) 0 sage: pol2.degree(p) 3 You get the expected behavior if you bring q into pol2.parent() explicitly: sage: q=pol2.parent()(q) sage: pol2.degree(q),pol2.polynomial(q) (3, 4*q^3

[sage-support] method .polynomial() gives unexpected answer

2011-07-25 Thread rafaeldleon
Hello all, I don´t know if the following is an error in the implementation of the method polynomial or if I am using it in a way that is not intended, but it seems that the use of the method polynomial changes when I am in a polynomial ring with 2 or with 3 variables. pol and pol2 are the "same"