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. p_v  (  v ,  m ,  relativistic=True  )[source]

The momentum

$$ p = \begin{cases}\gamma(v)mv, & \text{relativistic}\\ mv, & \text{classical}\end{cases}. $$
Parameters:
varray_like

The velocity $v$ of a body (m/s).

marray_like

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

relativisticbool

The calculation is performed either relativistically (True) or classically (False). The default is True.

Returns:
pndarray

The momentum $p$ of a body with velocity v and mass m (u m/s).