[sage-devel] Re: factorization in multivariable polynomial ring

2007-03-20 Thread William Stein
On Tuesday 20 March 2007 5:30 pm, Kyle Schalm wrote: > > Work over QQ instead: > > > > sage: W. = QQ['w1','w2'] > > sage: factor(w1*w2) > > w2 * w1 > > > > One can reduce factoring over ZZ to over QQ, with some work. > > Volunteers...? > > > > William > > oh good, an easy workaround. the same tric

[sage-devel] Re: factorization in multivariable polynomial ring

2007-03-20 Thread Kyle Schalm
> > Work over QQ instead: > > sage: W. = QQ['w1','w2'] > sage: factor(w1*w2) > w2 * w1 > > One can reduce factoring over ZZ to over QQ, with some work. > Volunteers...? > > William oh good, an easy workaround. the same trick doesn't seem to work if the base ring is a polynomial ring, that is,

[sage-devel] Re: factorization in multivariable polynomial ring

2007-03-20 Thread William Stein
On 3/20/07, Kyle Schalm <[EMAIL PROTECTED]> wrote: > > > how hard would it be to make this work? > > W. = ZZ['w1','w2'] > factor(w1*w2) > > > i'm using sage 2.3. if somebody could send me a code snippet, > it would be hugely appreciated. Work over QQ instead: sage: W. = QQ['w1','w2'] sage: fact