Dear all, I am quite new to sage and right now I'm trying to perform quite a simple numerical integration of the following form:
sage: integral(exp(-300.0/(-0.064*x+14.0)),x,0.0,120.0) If I simply put "x" into the denominator instead of the linear function it works fine. However, as shown, it sage throws an error that I don't understand: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_28.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("aW50ZWdyYWwoZXhwKC0zMDAuMC8oLTAuMDY0KngrMTQuMCkpLHgsMC4wLDEyMC4wKQ=="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module> File "/tmp/tmpaMotjT/___code___.py", line 3, in <module> exec compile(u'integral(exp(-_sage_const_300p0 /(-_sage_const_0p064 *x+_sage_const_14p0 )),x,_sage_const_0p0 ,_sage_const_120p0 ) File "", line 1, in <module> File "/home/sage/sage-5.0/local/lib/python2.7/site-packages/sage/misc/functional.py", line 728, in integral return x.integral(*args, **kwds) File "expression.pyx", line 8745, in sage.symbolic.expression.Expression.integral (sage/symbolic/expression.cpp:33707) File "/home/sage/sage-5.0/local/lib/python2.7/site-packages/sage/symbolic/integration/integral.py", line 633, in integrate return definite_integral(expression, v, a, b) File "function.pyx", line 413, in sage.symbolic.function.Function.__call__ (sage/symbolic/function.cpp:4678) File "/home/sage/sage-5.0/local/lib/python2.7/site-packages/sage/symbolic/integration/integral.py", line 173, in _eval_ return integrator(*args) File "/home/sage/sage-5.0/local/lib/python2.7/site-packages/sage/symbolic/integration/external.py", line 21, in maxima_integrator result = maxima.sr_integral(expression, v, a, b) File "/home/sage/sage-5.0/local/lib/python2.7/site-packages/sage/interfaces/maxima_lib.py", line 747, in sr_integral raise error RuntimeError: ECL says: In function GCD, the value of the second argument is 1.0 which is not of the expected type INTEGER Any ideas on how to resolve this issue? Any help is greatly appreciated. -- -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org