#12242: Divisibility of number field order elements needs work
-----------------------------+----------------------------------------------
   Reporter:  davidloeffler  |          Owner:  davidloeffler
       Type:  defect         |         Status:  new          
   Priority:  minor          |      Milestone:  sage-5.0     
  Component:  number fields  |       Keywords:               
Work_issues:                 |       Upstream:  N/A          
   Reviewer:                 |         Author:               
     Merged:                 |   Dependencies:               
-----------------------------+----------------------------------------------
 This is a followup to #11673. Elements of orders in number fields inherit
 from !FieldElement, despite not being elements of a field, and hence some
 arithmetic operations give nonsense:
 {{{
 sage: K.<a> = NumberField(x^2 - x - 1); OK = K.ring_of_integers()
 sage: OK(12).divides(OK(13))
 True
 sage: OK(12) // OK(13)
 12/13
 }}}
 The first should clearly be {{{False}}}, and I'm not sure what the second
 should be (perhaps a TypeError) but it certainly shouldn't be 12/13.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12242>
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