On Feb 28, 2010, at 4:20 PM, slabbe wrote:
Hi Sage-devel,
I am currently experiencing some problems when comparing elements of a
QuadraticField. See below.
sage: Q. = QuadraticField(3)
sage: 0 < sqrt3
False
sage: RR(sqrt3)
1.73205080756888
[...]
Is this known?
Yes, cmp() for number field
Hi Sebastien,
> I am currently experiencing some problems when comparing elements of a
> QuadraticField. See below.
I'm not sure this is exactly the same but I think Nicolas (the little) is
working on this:
Ticket #8347 Test the positivity of a number field element
Florent
--
To post to
Hi Sage-devel,
I am currently experiencing some problems when comparing elements of a
QuadraticField. See below.
sage: Q. = QuadraticField(3)
sage: 0 < sqrt3
False
sage: RR(sqrt3)
1.73205080756888
The operator < and > do not correspond :
sage: sqrt3 > Q.zero()
True
sage: Q.zero() < sqrt3 #not