[sage-support] Re: Coefficients of multivariate polynomials along with degrees

2012-02-20 Thread john_perry_usm
On Feb 19, 6:38 am, ObsessiveMathsFreak wrote: > Basically, I want to restrict the variables of a multivariate > polynomial to a certain set of symbols. > > B.variables() should return > [x,y] > instead of > [a,x,y] > > How can this be done. Maybe I misunderstand you, but this approach works fine

Re: [sage-support] Re: Coefficients of multivariate polynomials along with degrees

2012-02-19 Thread Mike Hansen
On Sun, Feb 19, 2012 at 4:38 AM, ObsessiveMathsFreak wrote: > Basically, I want to restrict the variables of a multivariate > polynomial to a certain set of symbols. > > B.variables() should return > [x,y] > instead of > [a,x,y] > > How can this be done. I have a patch at http://trac.sagemath.org

[sage-support] Re: Coefficients of multivariate polynomials along with degrees

2012-02-19 Thread ObsessiveMathsFreak
Basically, I want to restrict the variables of a multivariate polynomial to a certain set of symbols. B.variables() should return [x,y] instead of [a,x,y] How can this be done. (Incidentally, the Sage polynomial/ring documentation is absolute and utter bedlam. Is it not possible for ordinary mor

[sage-support] Re: Coefficients of multivariate polynomials along with degrees

2012-02-19 Thread ObsessiveMathsFreak
Is there any way to get this code to deal with non integer coefficients. Specifically, can it return coefficients that are symbolic. For example I would like f(x,y)=a*x^10*y+3*x B=f(x,y).polynomial(SR) print B.coefficients() to return [a,3] but instead it returns [1,3] Is it possible to have

[sage-support] Re: Coefficients of multivariate polynomials along with degrees

2012-02-09 Thread ObsessiveMathsFreak
Are you certain that these two functions return elements in the same order? On Feb 8, 11:40 pm, Mike Hansen wrote: > On Wed, Feb 8, 2012 at 3:29 PM, ObsessiveMathsFreak > > wrote: > > Is there no way of getting sage to give back the degree's of the > > corresponding multivariate polynomials as w