broken show for unevaluated integrals

8 views
Skip to first unread message

ma...@mendelu.cz

unread,
Jan 12, 2010, 2:58:54 AM1/12/10
to sage-devel
Dear sage-devel

the following (definite) integral is not evaluated by maxima and show
() command should return the same unevaluated integral in TeX
notation. I think this was the case in previous versions. On Sage 4.3.
I get th following

input: integrate(1/(1+sqrt(x)),x,0,1).show()

output: \int integrate\,{d \frac{1}{\sqrt{x} + 1}}

expected output: \int_0^1 \frac{..}{...} dx

What has changed?

Robert

Burcin Erocal

unread,
Jan 16, 2010, 1:29:02 PM1/16/10
to sage-...@googlegroups.com
Hi Robert,

After #7490, we give the function object as the first argument to
custom methods of symbolic functions. The function that prints integrals
is _integrate_latex_() on line 1556 of sage/calculus/calculus.py. It
gets the function integrate as a first argument, and prints the
nonsense you report above.

Here is a ticket:

http://trac.sagemath.org/sage_trac/ticket/7955

It should be easy to fix. We should add better error checking and
doctests to the functions though. If no one beats me to it, I can fix
this in the next few days.


Thank you.

Burcin

Reply all
Reply to author
Forward
0 new messages