#8938: Multivariate polynomials can be incorrectly formatted in LaTeX
-------------------------------+--------------------------------------------
Reporter: fwclarke | Owner: AlexGhitza
Type: defect | Status: needs_work
Priority: major | Milestone: sage-4.5
Component: algebra | Keywords: Multivariate polynomials latex
Author: Francis Clarke | Upstream: N/A
Reviewer: Martin Albrecht | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Changes (by davidloeffler):
* status: positive_review => needs_work
Comment:
I'm getting doctest failures with this under 4.5.alpha1:
{{{
sage -t "devel/sage-
reviewing/sage/rings/polynomial/multi_polynomial_element.py"
**********************************************************************
File "/storage/masiao/sage-4.5.alpha1/devel/sage-
reviewing/sage/rings/polynomial/multi_polynomial_element.py", line 379:
sage: latex(-I*y+I*x^2)
Expected:
\sqrt{-1} x^{2} - \sqrt{-1} y
Got:
\left(\sqrt{-1}\right) x^{2} + \left(-\sqrt{-1}\right) y
**********************************************************************
1 items had failures:
1 of 7 in __main__.example_15
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/masiao/.sage//tmp/.doctest_multi_polynomial_element.py
[3.7 s]
sage -t "devel/sage-reviewing/sage/rings/qqbar.py"
**********************************************************************
File "/storage/masiao/sage-4.5.alpha1/devel/sage-
reviewing/sage/rings/qqbar.py", line 2223:
sage: latex(-QQbar.zeta(4) + 5)
Expected:
-i + 5
Got:
-\sqrt{-1} + 5
**********************************************************************
1 items had failures:
1 of 7 in __main__.example_42
***Test Failed*** 1 failures.
For whitespace errors, see the file
/home/masiao/.sage//tmp/.doctest_qqbar.py
[19.5 s]
sage -t "devel/sage-reviewing/sage/schemes/generic/algebraic_scheme.py"
**********************************************************************
File "/storage/masiao/sage-4.5.alpha1/devel/sage-
reviewing/sage/schemes/generic/algebraic_scheme.py", line 595:
sage: S._latex_()
Expected:
'\\text{Closed subscheme of } {\\mathbf P}_{\\Bold{F}_{11}}^2 \\text{
defined by } x^{2} - y z'
Got:
'\\text{Closed subscheme of } {\\mathbf P}_{\\Bold{F}_{11}}^2 \\text{
defined by } x^{2} + 10 y z'
**********************************************************************
File "/storage/masiao/sage-4.5.alpha1/devel/sage-
reviewing/sage/schemes/generic/algebraic_scheme.py", line 602:
sage: S._latex_()
Expected:
'\\text{Closed subscheme of } {\\mathbf P}_{\\Bold{F}_{11}}^2 \\text{
defined by } x^{2} - y z, x^{5}'
Got:
'\\text{Closed subscheme of } {\\mathbf P}_{\\Bold{F}_{11}}^2 \\text{
defined by } x^{2} + 10 y z, x^{5}'
**********************************************************************
1 items had failures:
2 of 9 in __main__.example_23
***Test Failed*** 2 failures.
For whitespace errors, see the file
/home/masiao/.sage//tmp/.doctest_algebraic_scheme.py
[5.4 s]
----------------------------------------------------------------------
The following tests failed:
sage -t "devel/sage-
reviewing/sage/rings/polynomial/multi_polynomial_element.py"
sage -t "devel/sage-reviewing/sage/rings/qqbar.py"
sage -t "devel/sage-
reviewing/sage/schemes/generic/algebraic_scheme.py"
Total time for all tests: 28.6 seconds
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8938#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.