Question: Puzzling output from the EulerLagrange command (VariationalCalculus package)

Notice that the order of the output from the EulerLagrange command when three functions are input does not correspond to the order of the functions listed, and when they are requested separately, the last function is not included:

with(VariationalCalculus):

T3:=(1/2)*m*(diff(r(t),t)^2+r(t)^2*diff(theta(t),t)^2+diff(z(t),t)^2):
U3:=m*g*z(t):
L3:=T3-U3;

 


EL6:=EulerLagrange(L3,t,[r(t),theta(t),z(t)]);
EL6ra:=EulerLagrange(L3,t,r(t));

EL6thetaa:=EulerLagrange(L3,t,theta(t));
EL6za:=EulerLagrange(L3,t,z(t));


 



John Starrett

Please Wait...