tof.utils.speed_to_wavelength#

tof.utils.speed_to_wavelength(x, unit='angstrom')[source]#

Convert neutron speeds to wavelengths.

Parameters:
  • x (Variable) – Input speeds.

  • unit (str, default: 'angstrom') – The unit of the output wavelengths.

Return type:

Variable