dynamics lagrangian and hamiltonian 940046