On Mar 2, 3:10 am, Robert Bradshaw <rober...@math.washington.edu>
wrote:
> 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.

But for the QuadraticField this is unique, if the embedding is
specified:
   sage: QuadraticField?
       ....
       Unless otherwise specified, it has an embedding into RR or CC
by sending
       the generator to the positive root.
       ....

So if should be working, if the documentation does not lie....

Dima

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