I would like to add code that would allow for diff() to differentiate with respect to not just Symbol instances, but also with respect to Function and Derivative instances. An example of why this would be useful would be when forming Lagrange's equations, on needs to differentiate the Lagrangian with respect to the generalized coordinates, the time derivative of the generalized coordinates, and also with respect to time, and the generalized coordinates themselves are implicit functions of time.
My question is: Where should I add the code that allows for this? I can see two options: 1) in diff() of sympy/core/basic.py 2) in Derivative of sympy/core/function.py It seems to me option 1 is the right choice but I'd like to hear input on this. Maybe it doesn't matter or maybe it could another place? Thanks, ~Luke --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---