#9014: Implement a repr_prod
---------------------------+------------------------------------------------
Reporter: nborie | Owner: jason
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.0
Component: misc | Keywords: repr product
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
As for linear combinaison, implement a method in misc 'repr_prod' to
represent products.
{{{
def repr_prodcomb(symbols, coeffs, is_latex=False):
r"""
Compute a string representation of a product combination of some
formal symbols
"""
bla bla bla
sage: repr_prodcomb(['a','b','c'], [1,-2,-3])
'a * b^-2 * c^-3'
sage: repr_prodcomb([],[])
'1'
}}}
There is already a such function in
sage/rings/polynomial/polynomial_element_generic.py
With categories will come FreeGroups(Gens), FreeMonoid(Gens), Free... Such
futurs features motivate the need of this function.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9014>
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.