#13213: Comparisons in quadratic number field
-------------------------------------------------+--------------------------
       Reporter:  vdelecroix                     |         Owner:  vdelecroix   
    
           Type:  enhancement                    |        Status:  needs_work   
    
       Priority:  major                          |     Milestone:  sage-5.10    
    
      Component:  number fields                  |    Resolution:               
    
       Keywords:  real number field, comparison  |   Work issues:  rebase 
5.10.beta2
Report Upstream:  N/A                            |     Reviewers:  Burcin 
Erocal    
        Authors:  Vincent Delecroix              |     Merged in:               
    
   Dependencies:                                 |      Stopgaps:               
    
-------------------------------------------------+--------------------------

Comment (by vdelecroix):

 Replying to [comment:29 vdelecroix]:
 > There is a '''strange''' problem
 > {{{
 > sage: K.<sqrt2> = QuadraticField(2)
 > sage: 1/2 + sqrt2 > 0
 > False
 > }}}

 I got the problem... it was because there is a natural morphism
 implemented from the rational field to quadratic number field
 
(`sage.rings.number_field.number_field_element_quadratic.Q_to_quadratic_field_element`)
 which uses a non properly initialized instance of a quadratic element !

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13213#comment:30>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to