#6551: fix ugliness in printing of multivariate polynomials
-------------------------+--------------------------------------------------
Reporter: AlexGhitza | Owner: tbd
Type: enhancement | Status: new
Priority: major | Milestone: sage-4.1.1
Component: algebra | Keywords: print latex multivariate polynomial
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
The printing (and latex-ing) of multivariate polynomials is sometimes
quite ugly, and inconsistent with the much prettier printing of univariate
polynomials. One gets things like the following (taken from doctests in
the Sage library):
{{{
(-6/5)*x^2*y^2 + (-3)*x*y^3 + 6/5*x^2*y + 11/12*x*y^2 + (-18)*y^2 +
(-3/4)*y
}}}
or even
{{{
sage: xgcd((b+g)*y^2, (a+g)*y+b)
((b^3 + (g)*b^2)/(a^2 + (2*g)*a + 3), 1, ((-b + (-g))/(a + (g)))*y + (b^2
+ (g)*b)/(a^2 + (2*g)*a + 3))
}}}
The attached patch fixes this, factors out common code for printing and
latex-ing, and makes printing consistent across various representations of
multivariate polynomials.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6551>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---