vunits.convert.energy_to_freq

vunits.convert.energy_to_freq(energy, units_in='J', return_quantity=False, units_out='Hz')

Converts energy to frequency

Parameters
  • energy (float or Quantity obj) – Energy

  • units_in (str, optional) – Units corresponding to energy. Default is ‘J’.

  • return_quantity (bool, optional) – If True, returns Quantity. Otherwise, returns float.

  • units_out (str, optional) – Units corresponding to freq. Default is ‘Hz’.

Returns

freq – Frequency corresponding to units_out.

Return type

float or Quantity obj