scippneutron.conversion.tof.energy_from_wavelength#

scippneutron.conversion.tof.energy_from_wavelength(*, wavelength)[source]#

Compute the neutron energy from wavelength.

The result is

\[E = \frac{h^2}{2 m_n \lambda^2}\]

Where \(m_n\) is the neutron mass and \(h\) the Planck constant.

Parameters:

wavelength (Variable) – De Broglie wavelength \(\lambda\). Has unit meV.

Returns:

Variable – Neutron energy \(E\).