The most general form of the equipartition theorem states that under suitable assumptions (discussed below), for a physical system with Hamiltonian energy function H and degrees of freedom x n, the following equipartition formula holds in thermal equilibrium for all indices m and n :