#17166: Add coercion complex -> CC
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.4
      Component:  coercion           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/17166            |  d00b70614ae504cec82bd75de9e1147204b25944
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jdemeyer):

 Replying to [comment:7 vbraun]:
 > IMHO the coercion should be complex -> CDF -> CC and not complex -> CC
 -> CDF.
 Coercion goes both ways in this case (CDF -> CC and CC -> CDF), so the
 result is the same really. Interestingly, this has the following
 consequence:
 {{{
 sage: Sequence([CDF(1), CC(1)]).parent()
 Category of sequences in Complex Double Field
 sage: Sequence([CC(1), CDF(1)]).parent()
 Category of sequences in Complex Field with 53 bits of precision
 }}}

 Let me know what you think, if you think the coercion should be added to
 `ComplexDoubleField._coerce_map_from()`, I could do that.

--
Ticket URL: <http://trac.sagemath.org/ticket/17166#comment:8>
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/d/optout.

Reply via email to