#14366: Zero does not belong to zero ideal of a number field
---------------------------------+------------------------------
       Reporter:  olitb          |         Owner:  davidloeffler
           Type:  defect         |        Status:  needs_review
       Priority:  major          |     Milestone:  sage-5.11
      Component:  number fields  |    Resolution:
       Keywords:  sd51           |     Merged in:
        Authors:                 |     Reviewers:
Report Upstream:  N/A            |   Work issues:
         Branch:                 |  Dependencies:
       Stopgaps:                 |
---------------------------------+------------------------------

Comment (by davidloeffler):

 I can't help thinking that an easier solution would be to use the {{{
 _contains_()}}} method of the ideal's underlying Z-module
 ({{{self.free_module()}}}).

 We could just reimplement {{{ coordinates(self, x)}}} as
 {{{
 #!python
 def coordinates(self, x):
      K = self.number_field()
      V, from_V, to_V = K.absolute_vector_space()
      return self.free_module().coordinates(to_V(K(x)))
 }}}
 and then there is no longer any need to worry about the special case of
 the zero ideal, it will be dealt with automatically.

--
Ticket URL: <http://trac.sagemath.org/ticket/14366#comment:15>
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to