Use .variables

>>> d.variables
(x, y)

Aaron Meurer

On Tue, Jan 1, 2013 at 5:29 AM,  <[email protected]> wrote:
> Can I query a Derivative to find out with respect to what variables it is a
> derivative?
>
> Example:
>
> u, x, y = symbols(('u','x','y'))
> f=u(x,y)
> d=diff(diff(f,x),y)
>
> print d
> Derivative(u(x, y), x, y)
>
> I can find out that d is something that has been differentiated with respect
> to x and y, but would like to be able to do so in a
> function that receives d and where the only thing known about is that it is
> a derivative.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/LhKENsiBMtgJ.
> 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/sympy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" 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/sympy?hl=en.

Reply via email to