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

2012-02-20 Thread john_perry_usm
On Feb 19, 6:38 am, ObsessiveMathsFreak obsessivemathsfr...@gmail.com 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

[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

[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

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 obsessivemathsfr...@gmail.com 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

[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 mhan...@gmail.com wrote: On Wed, Feb 8, 2012 at 3:29 PM, ObsessiveMathsFreak obsessivemathsfr...@gmail.com wrote: Is there no way of getting sage to give back the degree's of the