I believe I have found a bug, and was not able to find any previous report 
or ticket to have it fixed.

I would expect the indefinite_integral method to accept a function and 
provide output, but it only works if I input the symbolic expression itself.

EX:

sage: from sage.symbolic.integration.integral import indefinite_integral
sage: indefinite_integral(x^2, x)
1/3*x^3
sage: f(x) = x^2
sage: indefinite_integral(f,x)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-4-352b9c71db7d> in <module>()
----> 1 indefinite_integral(f,x)

sage/symbolic/function.pyx in 
sage.symbolic.function.BuiltinFunction.__call__ 
(/usr/lib/sagemath//src/build/cythonized/sage/symbolic/function.cpp:11320)()

sage/symbolic/function.pyx in sage.symbolic.function.Function.__call__ 
(/usr/lib/sagemath//src/build/cythonized/sage/symbolic/function.cpp:6889)()

TypeError: cannot coerce arguments: no canonical coercion from Callable 
function ring with argument x to Symbolic Ring

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to