#6551: [with patch, needs work] fix ugliness in printing of multivariate
polynomials
-------------------------+--------------------------------------------------
Reporter: AlexGhitza | Owner: AlexGhitza
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-4.1.1
Component: algebra | Keywords: print latex multivariate polynomial
Reviewer: | Author:
Merged: |
-------------------------+--------------------------------------------------
Comment(by davidloeffler):
Hi Alex,
I decided to run all doctests just to check that I had rebased the patch
correctly, but there seems to be some funny business in quaternion
algebras. This is with the #6500 patches and the rebased patch here,
applied to 4.1:
{{{
sage -t "devel/sage/sage/algebras/quaternion_algebra_element.py"
**********************************************************************
File
"/home/david/sage-4.1/devel/sage/sage/algebras/quaternion_algebra_element.py",
line 17:
sage:
sage.algebras.quaternion_algebra_element.unpickle_QuaternionAlgebraElement_generic_v0(*t)
Expected:
2/3 + X*i - X^2*j + X^3*k
Got:
2/3 + X*i + (-X^2)*j + X^3*k
**********************************************************************
}}}
and
{{{
**********************************************************************
File
"/home/david/sage-4.1/devel/sage/sage/algebras/quatalg/quaternion_algebra.py",
line 455:
sage: QuaternionAlgebra(GF(17)(2),3).random_element()
Expected:
11 + 16*i + 4*j + 13*k
Got:
11 - i + 4*j + 13*k
**********************************************************************
}}}
This has nothing to do with the rebasing, because I ran these two tests
again using your original patch and without the #6500 patches and they
failed in exactly the same way. Any idea what is going on here?
David
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6551#comment:4>
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
-~----------~----~----~----~------~----~------~--~---