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

The operator < and  > do not correspond :

sage: sqrt3 > Q.zero()
True
sage: Q.zero() < sqrt3 #not ok
False

Other similar behavior :

sage: -sqrt3 > Q.zero() #not ok
True
sage: -sqrt3 < Q.zero()
False
sage: sqrt3 < Q.zero()
False
sage: sqrt3 < -sqrt3 #not ok
False
sage: sqrt3 > -sqrt3
True
sage: -sqrt3 > sqrt3 #not ok
True
sage: -sqrt3 < sqrt3
False

Is this known?

Sébastien Labbé

-- 
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