Atomic mass
The atomic mass (relative isotopic mass) is defined as the mass of a single atom, which can only be one isotope (nuclide) at a time, and is not an abundance-weighted average, as in the case of relative atomic mass/atomic weight. The atomic mass or relative isotopic mass of each isotope and nuclide of a chemical element is therefore a number that can in principle be measured to a very great precision, since every specimen of such a nuclide is expected to be exactly identical to every other specimen, as all atoms of a given type in the same energy state, and every specimen of a particular nuclide, are expected to be exactly identical in mass to every other specimen of that nuclide. For example, every atom of oxygen-16 is expected to have exactly the same atomic mass (relative isotopic mass) as every other atom of oxygen-16.
Mass–energy equivalence
For a system of particles going off in different directions, the invariant mass of the system is the analog of the rest mass, and is the same for all observers, even those in relative motion. It is defined as the total energy (divided by ) in the center of mass frame (where by definition, the system total momentum is zero). A simple example of an object with moving parts but zero total momentum is a container of gas. In this case, the mass of the container is given by its total energy (including the kinetic energy of the gas molecules), since the system total energy and invariant mass are the same in any reference frame where the momentum is zero, and such a reference frame is also the only frame in which the object can be weighed. In a similar way, the theory of special relativity posits that the thermal energy in all objects (including solids) contributes to their total masses and weights, even though this energy is present as the kinetic and potential energies of the atoms in the object, and it (in a similar way to the gas) is not seen in the rest masses of the atoms that make up the object.