mag2exp.ltem.relativistic_wavelength#

mag2exp.ltem.relativistic_wavelength(voltage)#

Relativistic wavelength of an electron accelerated using a voltage U.

The wavelength is calculated using

\[\lambda = \frac{h}{ \sqrt{2 m_e e U \left(1 + \frac{e U}{2 m_e c^2}\right)}}\]

where \(m_e\) and \(e\) are the mass and charge of an electron respectively, \(c\) is the speed of light, and \(U\) is the accelerating voltage in V.

Parameters:

voltage (numbers.Real) – Accelerating voltage in V.

Returns:

Wavelength in m.

Return type:

numbers.Real

Example

  1. Accelerating using 300 kV.

>>> import mag2exp
>>> mag2exp.ltem.relativistic_wavelength(300e3)
1.9687489006848795e-12