#17299: nasty bug in modular symbols, which is likely very easy to fix.
-------------------------------------+-------------------------------------
Reporter: was | Owner: haochen_uw
Type: defect | Status: new
Priority: critical | Milestone: sage-6.4
Component: modular forms | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/haochen_uw/latexrepbug | 35081a653922bc15298651161d307d8e9700bb80
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by aapitzsch):
Something like this seems to work.
{{{
#!diff
--- a/src/sage/misc/latex.py
+++ b/src/sage/misc/latex.py
@@ -2349,6 +2349,8 @@ def repr_lincomb(symbols, coeffs):
s += " + %s"%b
else:
coeff = coeff_repr(c)
+ if coeff == "-1":
+ coeff = "-"
if first:
coeff = str(coeff)
else:
@@ -2359,6 +2361,8 @@ def repr_lincomb(symbols, coeffs):
try:
if bv in CC:
s += "%s\cdot %s"%(coeff, b)
+ else:
+ s += "%s%s"%(coeff, b)
except Exception:
s += "%s%s"%(coeff, b)
first = False
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17299#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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.