Thanks a lot! It turned out that init_vprinting() gives the behavior I wanted.
In case others want to go down this path, I am appending a minimal notebook entry which shows the syntax. I am really impressed that diff(L, xdot) just works, and that I can use solve to get algebraic expressions for velocities and accelerations.
One additional question - is there a better way to get the time variable than dynamicsymbols._t ? I look at that leading underscore as an indication that I shouldn't be touching it from user code.
------------------
In [1]:
from sympy.physics.vector import dynamicsymbols
from sympy import diff, symbols, S
from sympy.physics.vector import init_vprinting
init_vprinting()
# Simplest test case .. particle of mass m in uniform gravitational field g
x = dynamicsymbols('x')
t = dynamicsymbols._t
xdot = diff(x,t)
m, g = symbols('m g')
T = (m * xdot**2)/S(2) #kinetic energy
V = m*g*x # potential energy is just mgh
L = T - V
#Euler-Lagrange equation
diff(L, xdot,t) - diff(L,x)