Thermal energy of a gas

If we have a gas with some heat, the atoms are all bouncing around and stuff. Their kinetic energy is

$KE = 1/2 m v^2$.

But momentum is given by $mv = p$, so we can rewrite the energy as

$KE = 1/2 pv$.

Everyone knows $pv = nRT$, so

$KE = 1/2 nRT$.

The kinetic energy of the motion of molecules is just the temperature of the gas!

(PS – this is a joke, but it actually gets the right answer for a 1-dimensional ideal gas. See wikipedia Thermal Energy)