#18920: upgrade Maxima and ECL to 5.36.0.1 and 15.3.7, respectively
-------------------------------------+-------------------------------------
Reporter: dimpase | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.8
Component: symbolics | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/dimpase/eclupdate | 82fdf0eaa092b63cc98d97b418721795ea6b5081
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Changes (by dimpase):
* cc: nbruin (added)
Comment:
New Maxima output sometimes breaks Sage parser, e.g.
{{{
sage -t src/sage/calculus/calculus.py
**********************************************************************
File "src/sage/calculus/calculus.py", line 373, in sage.calculus.calculus
Failed example:
taylor(gamma(1/3+x),x,0,3)
Exception raised:
Traceback (most recent call last):
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.calculus.calculus[100]>", line 1, in <module>
taylor(gamma(Integer(1)/Integer(3)+x),x,Integer(0),Integer(3))
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/calculus/functional.py", line 378, in taylor
return f.taylor(*args)
File "sage/symbolic/expression.pyx", line 4038, in
sage.symbolic.expression.Expression.taylor
(/home/dima/software/sage/src/build/cythonized/sage/symbolic/expression.cpp:23671)
return self.parent()(l)
File "sage/structure/parent.pyx", line 1097, in
sage.structure.parent.Parent.__call__
(/home/dima/software/sage/src/build/cythonized/sage/structure/parent.c:9546)
return mor._call_(x)
File "sage/structure/coerce_maps.pyx", line 237, in
sage.structure.coerce_maps.NamedConvertMap._call_
(/home/dima/software/sage/src/build/cythonized/sage/structure/coerce_maps.c:5756)
cdef Element e = method(C)
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/interfaces/maxima_abstract.py", line 1251, in _symbolic_
return R(self._sage_())
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/interfaces/maxima_abstract.py", line 1226, in _sage_
maxima=self.parent())
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/calculus/calculus.py", line 1901, in
symbolic_expression_from_maxima_string
raise TypeError("unable to make sense of Maxima expression '%s' in
Sage"%s)
TypeError: unable to make sense of Maxima expression
'(1/432)*(72*gamma(1/3)*(psi[2])(1/3)+((-72)*euler_gamma^3+((-36)*pi*3^(1/2)+(-324)*log(3))*euler_gamma^2+((-108)*log(3)*pi*3^(1/2)+(-18)*pi^2+(-486)*log(3)^2+(-216)*(psi[1])(1/3))*euler_gamma+((-1)*pi^3+((-81)*log(3)^2+(-36)*(psi[1])(1/3))*pi)*3^(1/2)+(-27)*log(3)*pi^2+(-243)*log(3)^3+(-324)*(psi[1])(1/3)*log(3))*gamma(1/3))*_SAGE_VAR_x^3+(1/24)*((12*euler_gamma^2+(4*pi*3^(1/2)+36*log(3))*euler_gamma+6*log(3)*pi*3^(1/2)+pi^2+27*log(3)^2+12*(psi[1])(1/3))*gamma(1/3))*_SAGE_VAR_x^2+((-1)/6)*((6*euler_gamma+pi*3^(1/2)+9*log(3))*gamma(1/3))*_SAGE_VAR_x+gamma(1/3)'
in Sage
}}}
and
{{{
File "src/sage/calculus/calculus.py", line 1746, in
sage.calculus.calculus.symbolic_expression_from_maxima_string
Failed example:
maxima('3*li[2](u)+8*li[33](exp(u))').sage()
Exception raised:
Traceback (most recent call last):
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 496, in _run
self.compile_and_execute(example, compiler, test.globs)
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.calculus.calculus.symbolic_expression_from_maxima_string[6]>", line
1, in <module>
maxima('3*li[2](u)+8*li[33](exp(u))').sage()
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/interfaces/interface.py", line 1016, in sage
return self._sage_(*args, **kwds)
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/interfaces/maxima_abstract.py", line 1226, in _sage_
maxima=self.parent())
File "/home/dima/software/sage/local/lib/python2.7/site-
packages/sage/calculus/calculus.py", line 1901, in
symbolic_expression_from_maxima_string
raise TypeError("unable to make sense of Maxima expression '%s' in
Sage"%s)
TypeError: unable to make sense of Maxima expression
'8*(li[33])(e^u)+3*(li[2])(u)' in Sage
}}}
Is it easy to fix?
--
Ticket URL: <http://trac.sagemath.org/ticket/18920#comment:23>
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.