qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec. e_rest  (  m  )[source]

The rest energy

$$ E_\mathrm{rest} = mc^2. $$
Parameters:
marray_like

The mass $m$ of a body (u).

Returns:
E_restndarray

The rest energy $E_\mathrm{rest}$ of the body with mass m (eV).