#10483: Deprecate the misuse of symbolic variables as polynomial variable
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner: AlexGhitza
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: basic arithmetic | Resolution:
Keywords: deprecation | Merged in:
symbolic polynomial variable | Reviewers: Karl-Dieter Crisman,
Authors: Simon King, Ralf | Jeroen Demeyer
Stephan | Work issues:
Report Upstream: N/A | Commit:
Branch: public/10483-3 | 58bc7051c72099f619b25ba91407fe2f2d6e5cbb
Dependencies: #17406, #17407 | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jdemeyer):
* status: needs_review => needs_work
Comment:
{{{
sage -t --long src/sage/tests/french_book/mpoly.py
**********************************************************************
File "src/sage/tests/french_book/mpoly.py", line 273, in
sage.tests.french_book.mpoly
Failed example:
fig = add((eq(t=k/5)*QQ[x,y]).plot() for k in (-15..15))
Expected nothing
Got:
doctest:867: DeprecationWarning: Variable name 'x' should be a string,
but we obtained <type
'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'>.
In an interactive session, you should use a definition of the form
'R.<x,y,z>=QQ[]'.
See http://trac.sagemath.org/10483 for details.
doctest:867: DeprecationWarning: Variable name 'y' should be a string,
but we obtained <type
'sage.rings.polynomial.multi_polynomial_libsingular.MPolynomial_libsingular'>.
In an interactive session, you should use a definition of the form
'R.<x,y,z>=QQ[]'.
See http://trac.sagemath.org/10483 for details.
**********************************************************************
1 item had failures:
1 of 148 in sage.tests.french_book.mpoly
[147 tests, 1 failure, 6.33 s]
sage -t --long src/sage/tests/french_book/polynomes.py
**********************************************************************
File "src/sage/tests/french_book/polynomes.py", line 51, in
sage.tests.french_book.polynomes
Failed example:
x = polygen(QQ); y = polygen(QQ[x], 'y')
Expected nothing
Got:
doctest:867: DeprecationWarning: Variable name 'x' should be a string,
but we obtained <type
'sage.rings.polynomial.polynomial_rational_flint.Polynomial_rational_flint'>.
In an interactive session, you should use a definition of the form
'R.<x,y,z>=QQ[]'.
See http://trac.sagemath.org/10483 for details.
**********************************************************************
1 item had failures:
1 of 108 in sage.tests.french_book.polynomes
[107 tests, 1 failure, 1.13 s]
sage -t --long src/sage/structure/misc.pyx
**********************************************************************
File "src/sage/structure/misc.pyx", line 81, in
sage.structure.misc.AttributeErrorMessage
Failed example:
isinstance(ElementError.message,
sage.structure.misc.AttributeErrorMessage)
Expected:
True
Got:
doctest:1: DeprecationWarning: BaseException.message has been
deprecated as of Python 2.6
True
**********************************************************************
1 item had failures:
1 of 17 in sage.structure.misc.AttributeErrorMessage
[52 tests, 1 failure, 1.67 s]
sage -t --long src/sage/modules/free_module_element.pyx
**********************************************************************
File "src/sage/modules/free_module_element.pyx", line 2479, in
sage.modules.free_module_element.FreeModuleElement.pairwise_product
Failed example:
parent(vector(ZZ[x],[1,2,3,4]).pairwise_product(vector(QQ,[1,2,3,4])))
Expected:
Ambient free module of rank 4 over the principal ideal domain
Univariate Polynomial Ring in x over Rational Field
Got:
doctest:867: DeprecationWarning: Variable name 'x' should be a string,
but we obtained <type 'sage.symbolic.expression.Expression'>.
In an interactive session, you should use a definition of the form
'R.<x,y,z>=QQ[]'.
See http://trac.sagemath.org/10483 for details.
Ambient free module of rank 4 over the principal ideal domain
Univariate Polynomial Ring in x over Rational Field
**********************************************************************
File "src/sage/modules/free_module_element.pyx", line 2486, in
sage.modules.free_module_element.FreeModuleElement.pairwise_product
Failed example:
parent(vector(ZZ[x][y],[1,2,3,4]).pairwise_product(vector(QQ,[1,2,3,4])))
Expected:
Ambient free module of rank 4 over the integral domain Univariate
Polynomial Ring in y over Univariate Polynomial Ring in x over Rational
Field
Got:
doctest:867: DeprecationWarning: Variable name 'y' should be a string,
but we obtained <type 'sage.symbolic.expression.Expression'>.
In an interactive session, you should use a definition of the form
'R.<x,y,z>=QQ[]'.
See http://trac.sagemath.org/10483 for details.
Ambient free module of rank 4 over the integral domain Univariate
Polynomial Ring in y over Univariate Polynomial Ring in x over Rational
Field
**********************************************************************
1 item had failures:
2 of 32 in
sage.modules.free_module_element.FreeModuleElement.pairwise_product
[873 tests, 2 failures, 4.50 s]
sage -t --long src/sage/misc/latex.py
**********************************************************************
File "src/sage/misc/latex.py", line 1901, in
sage.misc.latex.MathJax.__call__
Failed example:
str(MathJax().eval(ZZ[x], mode='display')) == str(MathJax()(ZZ[x]))
Expected:
True
Got:
doctest:867: DeprecationWarning: Variable name 'x' should be a string,
but we obtained <type 'sage.symbolic.expression.Expression'>.
In an interactive session, you should use a definition of the form
'R.<x,y,z>=QQ[]'.
See http://trac.sagemath.org/10483 for details.
True
**********************************************************************
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/10483#comment:53>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.