#9086: LaTeX representation of negative symbolic fractions broken
----------------------------------------------------------+-----------------
 Reporter:  leif                                          |         Owner:  
burcin       
     Type:  defect                                        |        Status:  new 
         
 Priority:  blocker                                       |     Milestone:  
sage-4.4.3   
Component:  symbolics                                     |    Resolution:      
         
 Keywords:  symbolic fraction, sign, minus, latex, pynac  |        Author:  
William Stein
 Upstream:  N/A                                           |      Reviewer:  
Mike Hansen  
   Merged:  sage-4.4.3.alpha2                             |   Work_issues:      
         
----------------------------------------------------------+-----------------
Description changed by damm:

Old description:

> I don't think the bug is fixed:
>
> {{{
> sage: var('x y')
> sage: latex(-x/y)
> \frac{x}{y}
> sage: latex(1/-x)
> \frac{1}{x}
> }}}

New description:

 When the numerator of a (negative) symbolic expression happens to be `1`
 (and only then), the sign is dropped in its LaTeX representation (but not
 its string representation):

 {{{
 sage: latex(-1/x)
 \frac{1}{x}

 sage: latex(1/-x)
 \frac{1}{x}
 }}}

 Origin of the new doctest failure in `sage/graphs/generic_graphy.py`,
 introduced with Sage 4.4.3.alpha0.

--

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