#11143: define symbolic functions for exponential integrals
-------------------------------------------------------------+--------------
Reporter: kcrisman | Owner:
benjaminfjones
Type: defect | Status:
positive_review
Priority: major | Milestone:
sage-5.1
Component: symbolics | Resolution:
Keywords: ei Ei special function maxima sd32 sd40.5 | Work issues:
Report Upstream: N/A | Reviewers:
Burcin Erocal, Karl-Dieter Crisman, William Stein
Authors: Benjamin Jones | Merged in:
Dependencies: | Stopgaps:
-------------------------------------------------------------+--------------
Comment (by JoalHeagney):
With the patches applied to 5.0, my fractional integral code works on sine
functions, but I still get the following error if pretty printing is on.
Is there a trac post for this?
{{{
def fracintegral(func,xsub,n,a=0):
t = var('t')
assume(t > a)
assume(x > a)
return integrate((x-t)^(n-1)*func.subs({xsub:t}),t,a,x)/gamma(n)
a = fracintegral(sin(x),x,1/2)
a
}}}
Returns this on the call to a (but not on the assignment of a =):
{{{
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_19.py", line 10, in <module>
exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8
-*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("YQ=="),globals())+"\\n");
execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>
File "/tmp/tmpJfuEaN/___code___.py", line 2, in <module>
exec compile(u'a
File "", line 1, in <module>
File "/home/joal/bin/sage-5.0/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 2280, in pretty_print
view(object)
File "/home/joal/bin/sage-5.0/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 2006, in view
s = _latex_file_(objects, title=title, sep=sep, tiny=tiny,
debug=debug, **latex_options)
File "/home/joal/bin/sage-5.0/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 1661, in _latex_file_
L = latex(x)
File "/home/joal/bin/sage-5.0/local/lib/python2.7/site-
packages/sage/misc/latex.py", line 909, in __call__
return LatexExpr(x._latex_())
File "expression.pyx", line 815, in
sage.symbolic.expression.Expression._latex_
(sage/symbolic/expression.cpp:4898)
File "ring.pyx", line 605, in
sage.symbolic.ring.SymbolicRing._latex_element_
(sage/symbolic/ring.cpp:6658)
File "pynac.pyx", line 433, in sage.symbolic.pynac.py_latex_function
(sage/symbolic/pynac.cpp:4817)
File "pynac.pyx", line 407, in
sage.symbolic.pynac.py_latex_function_pystring
(sage/symbolic/pynac.cpp:4443)
TypeError: _limit_latex_() takes exactly 4 arguments (5 given)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/11143#comment:62>
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.