#14485: Creation of a polynomial over QQbar
---------------------------------------+------------------------------------
       Reporter:  tmonteil             |         Owner:  malb     
           Type:  defect               |        Status:  new      
       Priority:  major                |     Milestone:  sage-5.10
      Component:  commutative algebra  |    Resolution:           
       Keywords:  QQbar, polynomial    |   Work issues:           
Report Upstream:  N/A                  |     Reviewers:           
        Authors:                       |     Merged in:           
   Dependencies:                       |      Stopgaps:           
---------------------------------------+------------------------------------

Comment (by nbruin):

 The thing that goes wrong is the following:
 {{{
 sage: S=QQbar['x']
 sage: S.base_ring().has_coerce_map_from(SR)
 True
 }}}
 Once this is found, it's clear how an element of `SR` should be converted
 into `QQbar['x']`: `SR` already coerces into `QQbar` itself, so we should
 just convert the element into a "constant polynomial".

 Except, of course, that `SR` doesn't really coerce into `QQbar`: Only
 "constant" expressions might (and even then, of course `pi` doesn't), and
 `x` of course isn't one of those. So the proper solution is probably to
 NOT install a coercion from SR to QQbar, because it isn't a coercion
 anyway. It's only a partial map. Doing so is probably going to be painful
 for something else.

 This problem doesn't arise for `AA` because it's pretty clear that not
 even algebraic elements fit in `AA`, so no coercion is installed.

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