tof.utils.energy_to_speed#

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

Convert neutron energies to speeds.

Parameters:
  • x (Variable) – Input energies.

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

Return type:

Variable