Lagrangian and Hamiltonian mechanics

Contents

Lagrangian and Hamiltonian mechanics#

Functions#

lagrangian(L, qs, qdots[, D])

Formulate the Euler-Lagrange equations for a Lagrangian.

hamiltonian(H, qs, ps)

Formulate Hamilton's equations for a Hamiltonian.