#7682: Customize printing of real numbers
---------------------------+------------------------------------------------
   Reporter:  jason        |       Owner:  AlexGhitza
       Type:  defect       |      Status:  needs_info
   Priority:  major        |   Milestone:  sage-4.3.2
  Component:  numerical    |    Keywords:            
     Author:  Jason Grout  |    Upstream:  N/A       
   Reviewer:               |      Merged:            
Work_issues:               |  
---------------------------+------------------------------------------------

Comment(by jason):

 Okay, this is getting big now.  I went through real_mpfr.pyx and added a
 lot of doctests and documentation.

 There are four doctests failing right now because I'm not sure if they are
 bugs or if they are right.  Here they are:

 {{{
 **********************************************************************
 File "/home/grout/sage-4.3.1/devel/sage-main/sage/rings/real_mpfr.pyx",
 line 3343:
     sage: RR('nan').is_real() # fail until we decide what it should be
 Expected nothing
 Got:
     True
 **********************************************************************
 File "/home/grout/sage-4.3.1/devel/sage-main/sage/rings/real_mpfr.pyx",
 line 3344:
     sage: RR('inf').is_real() # fail until we decide what it should be
 Expected nothing
 Got:
     True
 **********************************************************************
 File "/home/grout/sage-4.3.1/devel/sage-main/sage/rings/real_mpfr.pyx",
 line 3360:
     sage: RR('nan').__nonzero__() # fail until we decide what it should be
 Expected nothing
 Got:
     False
 **********************************************************************
 File "/home/grout/sage-4.3.1/devel/sage-main/sage/rings/real_mpfr.pyx",
 line 3397:
     sage: RR('nan')==RR('nan') # Fail until we decide what it should be
 Expected nothing
 Got:
     True
 **********************************************************************
 File "/home/grout/sage-4.3.1/devel/sage-main/sage/rings/real_mpfr.pyx",
 line 3419:
     sage: RR('nan')==RR('nan') # fail until we decide what it should be
 Expected nothing
 Got:
     True
 }}}

 Are those four answers right (the "Got:" parts)?  See #8074 for more
 corner cases.

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