[sage-support] Re: is_prime for polynomials over ZZ

2007-03-26 Thread Timothy Clemans
Apparently I was incorrectly defining x as an integer, however, I did not get an error the first I tried. incorrect way: x = PolynomialRing(ZZ) correct way: g. = PolynomialRing(ZZ) The len method works now. Thanks. On 3/26/07, Justin C. Walker <[EMAIL PROTECTED]> wrote: > > > On Mar 26, 2007, a

[sage-support] Re: is_prime for polynomials over ZZ

2007-03-26 Thread Justin C. Walker
On Mar 26, 2007, at 13:02 , David Harvey wrote: > > > On Mar 26, 2007, at 3:57 PM, Timothy Clemans wrote: > >> >> Apparently I was incorrectly defining x as an integer, however, I did >> not get an error the first I tried. >> >> incorrect way: x = PolynomialRing(ZZ) >> correct way: g. = Polynomi

[sage-support] Re: is_prime for polynomials over ZZ

2007-03-26 Thread William Stein
On Monday 26 March 2007 1:02 pm, David Harvey wrote: > On Mar 26, 2007, at 3:57 PM, Timothy Clemans wrote: > > Apparently I was incorrectly defining x as an integer, however, I did > > not get an error the first I tried. > > > > incorrect way: x = PolynomialRing(ZZ) > > correct way: g. = Polynomia

[sage-support] Re: is_prime for polynomials over ZZ

2007-03-26 Thread David Harvey
On Mar 26, 2007, at 3:57 PM, Timothy Clemans wrote: > > Apparently I was incorrectly defining x as an integer, however, I did > not get an error the first I tried. > > incorrect way: x = PolynomialRing(ZZ) > correct way: g. = PolynomialRing(ZZ) > > The len method works now. Thanks. Be careful t

[sage-support] Re: is_prime for polynomials over ZZ

2007-03-26 Thread Justin C. Walker
On Mar 26, 2007, at 12:24 , Timothy Clemans wrote: > > I just want to tell the user of my factoring apps when the quadratic > that they submit is prime. I've tried is_prime, and > len(factor(x^2+B*x+C)) (thinking an answer of one would mean its > prime, but it does not mean that). What is the be