#9370: customize printing of elements in CombinatorialFreeModules
-----------------------------+----------------------------------------------
   Reporter:  jhpalmieri     |       Owner:  sage-combinat
       Type:  enhancement    |      Status:  needs_review 
   Priority:  major          |   Milestone:  sage-4.5     
  Component:  combinatorics  |    Keywords:               
     Author:  John Palmieri  |    Upstream:  N/A          
   Reviewer:                 |      Merged:               
Work_issues:                 |  
-----------------------------+----------------------------------------------

Comment(by jhpalmieri):

 > Another idea would be to allow repr_bracket to be a pair (list or tuple)
 of strings, one for the left side and one for the right. It wouldn't be
 hard to implement, but is it worth doing? Would the documentation start to
 get too complicated?

 Here's a patch which implements this idea.  I think it's probably worth
 doing: consider
 {{{
 sage: F = CombinatorialFreeModule(QQ, [1,2,3], prefix='x',
 repr_bracket=["_{", "}"])
 sage: e = F.basis()
 sage: e[2] + 5*e[3]
 x_{2} + 5*x_{3}
 }}}

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