#7616: fix bug in trivial number field extensions
-----------------------------+----------------------------------------------
   Reporter:  rlm            |       Owner:  rlm          
       Type:  defect         |      Status:  needs_review 
   Priority:  major          |   Milestone:  sage-4.3.1   
  Component:  number fields  |    Keywords:               
Work_issues:                 |      Author:  Robert Miller
   Upstream:  N/A            |    Reviewer:               
     Merged:                 |  
-----------------------------+----------------------------------------------
Changes (by rlm):

  * status:  needs_work => needs_review


Comment:

 Replying to [comment:10 fwclarke]:
 > After the patch (with 4.3.rc0):
 > {{{
 > sage: K.<a> = QuadraticField(-3)
 > sage: L.<b> = K.extension(x - 5)
 > sage: a*b
 > 5*a
 > }}}
 > The result was `0` before.

 Since b == 5, this is correct.

 > But
 > {{{
 > sage: b
 >
 ---------------------------------------------------------------------------
 > IndexError
 > ...
 > IndexError: tuple index out of range
 > }}}
 > The result was `5` before.

 I've fixed this, and posted a new patch.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7616#comment:12>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to