I'm working on using sage to help with the Euler-Lagrange equation in my mechanics class. I have this worked up so far for a simple pendulum.
but that gives off the error:
I don't have any idea what all this means other than I'm guessing it doesn't like that I am trying to take the derivative with respect to a function?
Any help would be appreciated.
Yes. It seems that direct differentiation with respect to function is not possible in sage. See also this ticket. You might try the workaround by using variables in place of functions and then subtituting the functions after differentiation e.g.
posted Jan 10 '11kkumer
96 ● 2 ● 4 ● 6
Asked: Jan 08 '11
Seen: 236 times
Last updated: Jan 10 '11
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.