#7643: composite_fields does not play nice with QuadraticFields
-----------------------------+----------------------------------------------
   Reporter:  rlm            |       Owner:  davidloeffler 
       Type:  defect         |      Status:  needs_review  
   Priority:  major          |   Milestone:  sage-4.3.1    
  Component:  number fields  |    Keywords:                
Work_issues:                 |      Author:  Francis Clarke
   Upstream:  N/A            |    Reviewer:  John Cremona  
     Merged:                 |  
-----------------------------+----------------------------------------------
Changes (by fwclarke):

  * status:  needs_info => needs_review


Comment:

 Replying to [comment:2 cremona]:

 > Quick question:  in cases where we compute K.composite_fields(L) where
 there is an embedding of K into L or K into K, would it not be nice to
 return L (resp K) rather than some new field?  Surely that would not be
 expensive to test for.

 This is an excellent idea.  In principle it's easy to implement, because
 we only have to see if the degrees are equal.  In practice it all becomes
 quite complicated when embeddings, maps and relative fields are taken into
 account, and I fear the the code in the replacement patch which I attach
 is even more convoluted  than before.

 One of the complications was that I needed to obtain the inverse of an
 isomorphism between distinct fields.  At present one can only take the
 inverse of an ''automorphism'' of a field.  So the patch includes some
 minor tweaks to `rings/number_field/morphism.py`, `categories/map.pyx` and
 `modules/matrix_morphism.py` in order to do this neatly.  In particular,
 after the patch one can raise a map to the power -1, when the inverse is
 defined.

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