The statistical equipartition theorem defines the temperature T of a system with N degrees of freedom in terms of its energy E such that: E = 1 2 N k B T where k B is the Boltzmann constant. This is the equivalent energy for a mass M according to: E = M c 2 .