tof.utils.wavelength_to_speed#

tof.utils.wavelength_to_speed(x, unit='m/s')[source]#

Convert neutron wavelengths to speeds.

Parameters:
  • x (Variable) – Input wavelengths.

  • unit (str, default: 'm/s') – The unit of the output speeds.

Return type:

Variable