#9086: LaTeX representation of negative symbolic fractions broken
----------------------------------------------------------+-----------------
Reporter: leif | Owner:
burcin
Type: defect | Status:
closed
Priority: blocker | Milestone:
sage-4.4.3
Component: symbolics | Resolution:
fixed
Keywords: symbolic fraction, sign, minus, latex, pynac | Author:
William Stein
Upstream: N/A | Reviewer:
Mike Hansen
Merged: sage-4.4.3.alpha2 | Work_issues:
----------------------------------------------------------+-----------------
Changes (by leif):
* status: new => closed
* resolution: => fixed
Old 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.
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.
----
'''Update:'''
Actually, though I tested many other cases, the same (still) happens if
both the numerator and denominator are (symbolic) variables (see also
http://trac.sagemath.org/sage_trac/ticket/9086#comment:12):
{{{
sage: var("x y")
(x, y)
sage: latex(-x/y)
\frac{x}{y}
sage: latex(x/-y)
\frac{x}{y}
}}}
But since it was discovered after the patch that fixes the first issue had
been merged, the latter bug is now
http://trac.sagemath.org/sage_trac/ticket/9314.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9086#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.