#4892: [with patch, needs work] Changing precision of a Complex can convert it 
to
a real
------------------------------------+---------------------------------------
 Reporter:  cremona                 |        Owner:  rlm       
     Type:  defect                  |       Status:  assigned  
 Priority:  major                   |    Milestone:  sage-3.4.1
Component:  basic arithmetic        |   Resolution:            
 Keywords:  real complex precision  |  
------------------------------------+---------------------------------------
Changes (by mabshoff):

  * summary:  [with patch, positive review] Changing precision of a Complex
              can convert it to a real => [with patch, needs
              work] Changing precision of a Complex can
              convert it to a real

Comment:

 This patch causes the following doctest failure:
 {{{
 mabsh...@geom:/scratch/mabshoff/sage-3.3.alpha2$ ./sage -t -long
 devel/sage/sage/modules/vector_double_dense.pyx
 sage -t -long "devel/sage/sage/modules/vector_double_dense.pyx"
 **********************************************************************
 File
 
"/scratch/mabshoff/sage-3.3.alpha2/devel/sage/sage/modules/vector_double_dense.pyx",
 line 531:
     sage: _.parent()
 Expected:
     Vector space of dimension 3 over Real Field with 53 bits of precision
 Got:
     Vector space of dimension 3 over Complex Field with 53 bits of
 precision
 **********************************************************************
 File
 
"/scratch/mabshoff/sage-3.3.alpha2/devel/sage/sage/modules/vector_double_dense.pyx",
 line 535:
     sage: _.parent()
 Expected:
     Vector space of dimension 3 over Real Field with 75 bits of precision
 Got:
     Vector space of dimension 3 over Complex Field with 75 bits of
 precision
 **********************************************************************
 }}}

 Given that this is vector_double_dense.pyx it seems odd.

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4892#comment:3>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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