#7363: print symbolic fractions more naturally: print 2/(x+2) instead of 2
(1/(x+2))
---------------------------------------------------+------------------------
   Reporter:  jason                                |       Owner:  burcin       
         
       Type:  defect                               |      Status:  
positive_review       
   Priority:  minor                                |   Milestone:  sage-4.3.3   
         
  Component:  symbolics                            |    Keywords:  pynac, 
symbolic, print
     Author:  Burcin Erocal                        |    Upstream:  N/A          
         
   Reviewer:  Karl-Dieter Crisman, Ross Kyprianou  |      Merged:               
         
Work_issues:                                       |  
---------------------------------------------------+------------------------
Changes (by rossk):

  * keywords:  pynac => pynac, symbolic, print
  * reviewer:  => Karl-Dieter Crisman, Ross Kyprianou
  * status:  needs_review => positive_review


Comment:

 Im also not qualified to review the C++ code but the (representative)
 examples below indicate the code satisfies the objectives so Im giving it
 a positive review (which someone can reverse if they discover a
 counterexample)[[BR]]

 {{{
 # Note: division is left associative: 12/3/4 = (12/3)/4
 sage: 12/3/4
 1

 sage: var('x y z')
 (x, y, z)

 sage: 2/(x+1) # the motivating example
 2/(x + 1)

 sage: 1/(2*y)
 1/2/y

 sage: 1/(1/2*y)
 2/y

 sage: x/2/y
 1/2*x/y

 sage: .5*x/y
 0.500000000000000*x/y

 sage: .5/x/y
 0.500000000000000/(x*y)

 sage: 1/2/x/y
 1/2/(x*y)

 sage: 1/x/2
 1/2/x
 }}}

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