#8720: CC and CDF do not display numeric 0
--------------------------------+-------------------------------------------
   Reporter:  jason             |          Owner:  AlexGhitza              
       Type:  defect            |         Status:  needs_review            
   Priority:  major             |      Milestone:  sage-5.0                
  Component:  basic arithmetic  |       Keywords:                          
Work_issues:                    |       Upstream:  N/A                     
   Reviewer:  Paul Zimmermann   |         Author:  Jason Grout, Mike Hansen
     Merged:                    |   Dependencies:                          
--------------------------------+-------------------------------------------

Old description:

> Look at the inconsistency:
>
> {{{
> sage: RR(0)
> 0.000000000000000
> sage: RDF(0)
> 0.0
> }}}
>
> versus
>
> {{{
> sage: CDF(0)
> 0
> sage: CC(0)
> 0
> }}}

New description:

 Look at the inconsistency:

 {{{
 sage: RR(0)
 0.000000000000000
 sage: RDF(0)
 0.0
 }}}

 versus

 {{{
 sage: CDF(0)
 0
 sage: CC(0)
 0
 }}}


 ----

 Apply [attachment:trac-8720-printing-complex-zero.patch],
 [attachment:trac_8720-doctests.patch], and
 [attachment:trac_8720-doctests-2.patch].

--

Comment(by kcrisman):

 Note that the second patch applies with a little fuzz.
 {{{
 $ hg qpush
 applying trac_8720-doctests.patch
 patching file sage/matrix/matrix_double_dense.pyx
 Hunk #1 succeeded at 189 with fuzz 2 (offset 9 lines).
 now at: trac_8720-doctests.patch
 }}}
 I'll run tests and check.  I should have set `sage -b` to do parallel
 building

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