#7160: comparison with quadratic number field elements needs work
----------------------------------------------+-----------------------------
       Reporter:  mhansen                     |         Owner:  davidloeffler   
           Type:  defect                      |        Status:  needs_review    
       Priority:  major                       |     Milestone:  sage-5.10       
      Component:  number fields               |    Resolution:                  
       Keywords:  sd35                        |   Work issues:  doctest failures
Report Upstream:  N/A                         |     Reviewers:                  
        Authors:  Mike Hansen, Burcin Erocal  |     Merged in:                  
   Dependencies:                              |      Stopgaps:                  
----------------------------------------------+-----------------------------
Changes (by vdelecroix):

  * status:  needs_work => needs_review


Old description:

> {{{
> sage: I^2
> -1
> sage: bool(I^2 < 0)
> True
> sage: bool(I^2 > 0)
> True
> }}}

New description:

 {{{
 sage: I^2
 -1
 sage: bool(I^2 < 0)
 True
 sage: bool(I^2 > 0)
 True
 }}}

 Apply:

 - trac_7160-doctest.patch

--

Comment:

 There are no example which deals with the symbolic ring... that's why I
 suggested to add some doctest here. See the proposition in the patch.
 Nevertheless, I found stupid the following behavior (or at least
 confusing)
 {{{
 sage: I**2 == -1
 -1 == -1
 sage: (I+4)**4 > 0
 -4 > 0
 }}}

 apply trac_7160-doctest.patch

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7160#comment:23>
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