#9370: customize printing of elements in CombinatorialFreeModules
-------------------------------+--------------------------------------------
Reporter: jhpalmieri | Owner: sage-combinat
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.7
Component: combinatorics | Keywords:
Author: John Palmieri | Upstream: N/A
Reviewer: Christian Stump | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Comment(by jhpalmieri):
The Steenrod algebra code at #10052 revealed a small bug in the
{{{_latex_}}} method: when replacing a trailing "* 1" in latex code via
{{{
if x[len(x)-l-1:] == ast_replace+"1":
return x[:len(x)-l-1]
}}}
if {{{ast_replace}}} is the empty string, this will just remove any
trailing 1, for example from "x \otimes 1" or from "31", etc. So I'm
changing the test to
{{{
if l > 0 and x[len(x)-l-1:] == ast_replace+"1":
return x[:len(x)-l-1]
}}}
so it only does the replacement if the length {{{l}}} of {{{ast_replace}}}
is positive. (I also find the letter "l" hard to distinguish from the
number "1", so I'm changing it to "ln". Then we can pretend it's the
natural log and we're doing calculus instead of algebra.)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9370#comment:19>
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.