- qspec.p_el ( u , q , m , p0 = 0 , relativistic = True )[source]
The momentum $p = \frac{1}{c}\sqrt{(qU)^2 + (p_0 c)^2 + 2qU\sqrt{(p_0 c)^2 + (mc^2)^2}}$.
- Parameters:
-
- uarray_like
The electric potential difference $U$ added to the kinetic energy of a body with momentum
p0
(V).- qarray_like
The electric charge $q$ of the body (e).
- marray_like
The mass $m$ of the body (u).
- p0array_like
The initial momentum of the body (u m/s).
- relativisticbool
The calculation is performed either relativistically (
True
) or classically (False
). The default isTrue
.
- Returns:
-
- outndarray
The momentum $p$ of a body with electric charge
q
, massm
and starting momentump0
after the addition of the energye
(u m/s).