Problem with incomplete Gamma function and Maxima?

79 views
Skip to first unread message

Rafael Greenblatt

unread,
Aug 8, 2014, 9:49:21 AM8/8/14
to sage-s...@googlegroups.com
The following commands:

var("x,y")
(incomplete_gamma(x,y).diff(x)).simplify()

give the following error (on cloud.sagemath.com):

Error in lines 2-2 Traceback (most recent call last): File "/projects/367dddb5-9cc5-40f5-bd01-50bab618f735/.sagemathcloud/sage_server.py", line 736, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "expression.pyx", line 7999, in sage.symbolic.expression.Expression.simplify (build/cythonized/sage/symbolic/expression.cpp:35401) File "expression.pyx", line 585, in sage.symbolic.expression.Expression._maxima_ (build/cythonized/sage/symbolic/expression.cpp:5366) File "sage_object.pyx", line 580, in sage.structure.sage_object.SageObject._interface_ (build/cythonized/sage/structure/sage_object.c:4781) File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/interface.py", line 199, in __call__ return cls(self, x, name=name) File "/usr/local/sage/sage-6.3.beta6/local/lib/python2.7/site-packages/sage/interfaces/interface.py", line 626, in __init__ raise TypeError(x) TypeError: ECL says: Error executing code in Maxima: gamma: wrong number of arguments.

I suspect that the problem is that Sage (sometimes?) treats gamma and incomplete_gamma as the same function, but Maxima doesn't, and the interface doesn't take that into account.

Nils Bruin

unread,
Aug 8, 2014, 10:48:49 AM8/8/14
to sage-s...@googlegroups.com
On Friday, August 8, 2014 6:49:21 AM UTC-7, Rafael Greenblatt wrote:

I suspect that the problem is that Sage (sometimes?) treats gamma and incomplete_gamma as the same function, but Maxima doesn't, and the interface doesn't take that into account.
 
That's probably what happens. There's some work on this: http://trac.sagemath.org/ticket/16697 . However, the case you ran into might not be covered yet. Thanks for reporting.

Nils Bruin

unread,
Aug 8, 2014, 6:50:04 PM8/8/14
to sage-s...@googlegroups.com
On Friday, August 8, 2014 6:49:21 AM UTC-7, Rafael Greenblatt wrote:
The following commands:

var("x,y")
(incomplete_gamma(x,y).diff(x)).simplify()

give the following error (on cloud.sagemath.com):
TypeError: ECL says: Error executing code in Maxima: gamma: wrong number of arguments.

This is part of a wider issue. Fix at  http://trac.sagemath.org/ticket/16785
Reply all
Reply to author
Forward
0 new messages