Integration of a function of multiple variables

40 views
Skip to first unread message

Fabrice Silva

unread,
Jul 7, 2017, 4:05:49 AM7/7/17
to sympy
Dear Sympiers,
I have been puzzled by the results of the integration on some unknown function of several variables. For instance:

>>> import sympy as sy
>>> x, y, t = sy.symbols('x y t', real=True)
>>> vx = sy.Function('v_x')(x,y,t)

vx being thought as a scalar field in the 2D plane.

>>> sy.integrate(vx, (y))
gives the expected primitive of the field wrt the second argument y.
However
>>>sy.integrate(vx.diff(x), (y))
assumes that vx.diff(x) does not depend on y, and thus the primitive is simply y*vx.diff(x).

Did I miss some fundamental point in this trivial example ?
Best regards

Fabrice

Aaron Meurer

unread,
Jul 7, 2017, 4:11:24 AM7/7/17
to sy...@googlegroups.com
It seems this is a bug. I opened https://github.com/sympy/sympy/issues/12899.

Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sympy+un...@googlegroups.com.
> To post to this group, send email to sy...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sympy.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/31313ec5-f4cf-427f-ac84-9dbd710ad72a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Boris Ettinger

unread,
Jul 14, 2017, 11:34:01 AM7/14/17
to sympy
Created a pull request to fix the issue https://github.com/sympy/sympy/pull/12971
Reply all
Reply to author
Forward
0 new messages