An introduction to hamiltonian mechanics.