[sage-devel] Re: 3 feature request for multivariate polynomials

2007-08-17 Thread boothby
On Fri, 17 Aug 2007, Joseph L Wetherell wrote: > > Robert Bradshaw wrote: >> >> On Jul 30, 2007, at 12:26 PM, didier deshommes wrote: >> >>> 2007/7/30, Carl Witty <[EMAIL PROTECTED]>: It seems pretty strange to me, mostly because you lose too much information by eliding zeroes. As f

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-08-17 Thread Joseph L Wetherell
Robert Bradshaw wrote: > > On Jul 30, 2007, at 12:26 PM, didier deshommes wrote: > >> 2007/7/30, Carl Witty <[EMAIL PROTECTED]>: >>> It seems pretty strange to me, mostly because you lose too much >>> information by eliding zeroes. As far as I can tell, given >>> MPolynomialRing(QQ,2,order='lex

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-08-01 Thread William Stein
On 8/1/07, Martin Albrecht <[EMAIL PROTECTED]> wrote: > > Too late, I just did it, since I needed it for something else I'm > > doing (related to power series over polynomial rings). Martin, > > please have a look, since you might be able to improve the patch. > > I spot two things: > * The metho

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-08-01 Thread Martin Albrecht
> Too late, I just did it, since I needed it for something else I'm > doing (related to power series over polynomial rings). Martin, > please have a look, since you might be able to improve the patch. I spot two things: * The method does not preserve the term ordering (which might be tricky anyh

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-31 Thread Nick Alexander
"William Stein" <[EMAIL PROTECTED]> writes: > I also added f.polynomial(...) for f a multivariate polynomial, which > sort of fits into the thread of this discussion. This is > a very useful function for certain applications -- it allows you to > view a multivariate polynomial as a single variab

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-31 Thread Robert Bradshaw
On Jul 30, 2007, at 12:26 PM, didier deshommes wrote: > > 2007/7/30, Carl Witty <[EMAIL PROTECTED]>: >> It seems pretty strange to me, mostly because you lose too much >> information by eliding zeroes. As far as I can tell, given >> MPolynomialRing(QQ,2,order='lex'), all of the following polyno

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-31 Thread William Stein
On 7/31/07, Martin Albrecht <[EMAIL PROTECTED]> wrote: > > > Is this a bug, or am I not using this correctly? > > I'll add the option to construct an MPolynomial_libsingular from a PolyDict. Too late, I just did it, since I needed it for something else I'm doing (related to power series over polyn

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-31 Thread Martin Albrecht
> Is this a bug, or am I not using this correctly? I'll add the option to construct an MPolynomial_libsingular from a PolyDict. Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTE

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-30 Thread didier deshommes
2007/7/30, Martin Albrecht <[EMAIL PROTECTED]>: > > Hi Didier, > > I hope you don't mind that I have some remarks about your patches Not at all! I am just poking my way through the multivariate code and any input from someone more knowledgeable than me would be greatly appreciated. > > The R.ran

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-30 Thread Carl Witty
On Jul 30, 12:26 pm, "didier deshommes" <[EMAIL PROTECTED]> wrote: > 2007/7/30, Carl Witty <[EMAIL PROTECTED]>: > > > It seems pretty strange to me, mostly because you lose too much > > information by eliding zeroes. As far as I can tell, given > > MPolynomialRing(QQ,2,order='lex'), all of the fo

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-30 Thread didier deshommes
2007/7/30, Carl Witty <[EMAIL PROTECTED]>: > It seems pretty strange to me, mostly because you lose too much > information by eliding zeroes. As far as I can tell, given > MPolynomialRing(QQ,2,order='lex'), all of the following polynomials: > > 3*x^2 + 1 > 3*x^5 + x > 3*y^7 + 1 > 3*y + 1

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-30 Thread Carl Witty
On Jul 27, 9:20 pm, didier deshommes <[EMAIL PROTECTED]> wrote: > Hi there, > I'm trying to work with multivariate polynomials in SAGE and here are > 3 features that I would like. Assume f is a multi-poly: > * f.coefficients() for multivariate polynomials. I would like to get > all the coefficie

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-30 Thread Martin Albrecht
Hi Didier, I hope you don't mind that I have some remarks about your patches The f.coefficients() patch is only against MPolynomial_libsingular but is implemented generally enough to be pushed down to MPolynomial such that MPolynomial_polydict may benefit from it as well. Also, using f.dict()

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-29 Thread didier deshommes
2007/7/28, William Stein <[EMAIL PROTECTED]>: > I think you should just implement all of the above and send me > a patch. :-). I had some time to kill on the plane, and I decided to follow your advice :) . I've attached the 3 patches. And for pth norm, I meant the l_p norm (http://mathworld.wolfr

[sage-devel] Re: 3 feature request for multivariate polynomials

2007-07-28 Thread William Stein
On 7/27/07, didier deshommes <[EMAIL PROTECTED]> wrote: > Hi there, > I'm trying to work with multivariate polynomials in SAGE and here are > 3 features that I would like. Assume f is a multi-poly: > * f.coefficients() for multivariate polynomials. I would like to get > all the coefficients of f