 While the Lagrangian formalism is well adapted to evaluating mechanical systems of particles, it is not as well suited to evaluating some transfers of energy, which involve calculations over a vast multitude of molecules. The Hamiltonian formalism is better suited to this task. The Hamiltonian equations also evaluate the action in a system, but use an integral sum of the momenta of the elements of the system. In the simplest case, the Lagrangian deals with the velocity of a particle and the Hamiltonian with the momenta of the particle. The Hamiltonian gives a minimum value for a function over any path given the initial and end states of the action. Thus, the Hamiltonian formalism yields the same result, namely the mathematical determination of the path taken by a system.