- qspec. v_el_d1 ( u , q , m , v0=0 , relativistic=True )[source]
-
The first derivative
$$ \frac{\partial v}{\partial U} = \frac{q}{amv(U)},\quad a = \begin{cases}\left[\gamma(v_0) + \frac{qU}{mc^2}\right]^3, & \text{relativistic}\\ 1, & \text{classical}\end{cases}. $$- Parameters:
-
- uarray_like
The electric potential difference $U$ added to the kinetic energy of a body with velocity
v0(V).- qarray_like
The electric charge $q$ of the body (e).
- marray_like
The mass $m$ of the body (u).
- v0array_like
The initial velocity $v_0$ of the body (m/s).
- relativisticbool
The calculation is performed either relativistically (
True) or classically (False). The default isTrue.
- Returns:
-
- dv_dUndarray
The first derivative $\partial v / \partial U$ of the velocity $v$ of the body with starting velocity
v0, electric chargeqand massmafter electrostatic acceleration with the voltageu(m/(s V)).