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.<sqrt3> = QuadraticField(3)
sage: 0 < sqrt3
False
sage: RR(sqrt3)
1.73205080756888

[...]

Is this known?

Yes, cmp() for number field elements is arbitrary, as they don't have (canonical) real embeddings in general. There are a couple of tickets to address this.

- Robert

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to