[sage-devel] Re: quadratic fields

2007-11-01 Thread Robert Bradshaw
On Nov 1, 2007, at 12:11 AM, William Stein wrote: > On Thu, 01 Nov 2007 00:00:57 -0700, Robert Bradshaw > <[EMAIL PROTECTED]> wrote: >> The answer is, I believe, yes. Should it rely on the check flag to >> decide whether or not to try and factor? > > Wait, is there a good reason to ever compute

[sage-devel] Re: quadratic fields

2007-11-01 Thread John Cremona
ok, I'm happy! On 01/11/2007, William Stein <[EMAIL PROTECTED]> wrote: > > On 11/1/07, John Cremona <[EMAIL PROTECTED]> wrote: > > In my opinion construction of the field, in order to able to do basic > > arithmetic in it, should not require any checking other than that the > > defining polynomia

[sage-devel] Re: quadratic fields

2007-11-01 Thread William Stein
On 11/1/07, John Cremona <[EMAIL PROTECTED]> wrote: > In my opinion construction of the field, in order to able to do basic > arithmetic in it, should not require any checking other than that the > defining polynomial is irreducible -- in this case, whether D is a > square. Only if you need the r

[sage-devel] Re: quadratic fields

2007-11-01 Thread John Cremona
In my opinion construction of the field, in order to able to do basic arithmetic in it, should not require any checking other than that the defining polynomial is irreducible -- in this case, whether D is a square. Only if you need the ring of integers should it be necessary to do the extra work

[sage-devel] Re: quadratic fields

2007-10-31 Thread Robert Bradshaw
On Nov 1, 2007, at 12:11 AM, William Stein wrote: > On Thu, 01 Nov 2007 00:00:57 -0700, Robert Bradshaw > <[EMAIL PROTECTED]> wrote: >> The answer is, I believe, yes. Should it rely on the check flag to >> decide whether or not to try and factor? > > Wait, is there a good reason to ever compute

[sage-devel] Re: quadratic fields

2007-10-31 Thread William Stein
On Thu, 01 Nov 2007 00:00:57 -0700, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > The answer is, I believe, yes. Should it rely on the check flag to > decide whether or not to try and factor? Wait, is there a good reason to ever compute the discriminant in order to represent elements of the field?

[sage-devel] Re: quadratic fields

2007-10-31 Thread Robert Bradshaw
The answer is, I believe, yes. Should it rely on the check flag to decide whether or not to try and factor? - Robert On Oct 31, 2007, at 11:58 PM, William Stein wrote: > > Robert, > > You massively sped up quadratic field arithmetic, which is really > awesome. > Unfortunately the following