scippneutron.conversion.tof.incident_energy_from_wavelength#

scippneutron.conversion.tof.incident_energy_from_wavelength(*, incident_wavelength)[source]#

Compute the incident energy from the incident wavelength.

The result is

\[E_i = \frac{h^2}{2 m_n \lambda_i^2}\]

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

Parameters:

incident_wavelength (Variable) – Incident neutron wavelength \(\lambda_i\).

Returns:

Variable – Incident energy \(E_i\). Has unit meV.