original_docstring: 
      Calculate the directivity for the H-plane horn.
      :param guide_height: The height of the waveguide feed (m).
      :param horn_width: The width of the horn (m).
      :param horn_effective_length: The effective length of the horn (m).
      :param frequency: The operating frequency (Hz).
      :return: The directivity for the H-plane horn.
      
docstring: Calculate the directivity for the H-plane horn.
docstring_tokens: Calculate the directivity for the H - plane horn .
code: def directivity(guide_height, horn_width, horn_effective_length, frequency):
      """
      Calculate the directivity for the H-plane horn.
      :param guide_height: The height of the waveguide feed (m).
      :param horn_width: The width of the horn (m).
      :param horn_effective_length: The effective length of the horn (m).
      :param frequency: The operating frequency (Hz).
      :return: The directivity for the H-plane horn.
      """
      # Calculate the wavelength
      wavelength = c / frequency
  
      # Calculate the arguments for the Fresnel integrals
      u = 1.0 / sqrt(2.0) * (sqrt(wavelength * horn_effective_length) / horn_width
                             + horn_width / sqrt(wavelength + horn_effective_length))
  
      v = 1.0 / sqrt(2.0) * (sqrt(wavelength * horn_effective_length) / horn_width
                             - horn_width / sqrt(wavelength + horn_effective_length))
  
      # Calculate the Fresnel integrals
      Cu, Su = fresnel(u)
      Cv, Sv = fresnel(v)
  
      return 4.0 * pi * guide_height * horn_effective_length / (horn_width * wavelength) * \
             ((Cu - Cv) ** 2 + (Su - Sv) ** 2)
code_tokens: def directivity ( guide_height , horn_width , horn_effective_length , frequency ) : wavelength = c / frequency u = 1.0 / sqrt ( 2.0 ) * ( sqrt ( wavelength * horn_effective_length ) / horn_width + horn_width / sqrt ( wavelength + horn_effective_length ) ) v = 1.0 / sqrt ( 2.0 ) * ( sqrt ( wavelength * horn_effective_length ) / horn_width - horn_width / sqrt ( wavelength + horn_effective_length ) ) Cu , Su = fresnel ( u ) Cv , Sv = fresnel ( v ) return 4.0 * pi * guide_height * horn_effective_length / ( horn_width * wavelength ) * ( ( Cu - Cv ) ** 2 + ( Su - Sv ) ** 2 )
short_docstring: Calculate the directivity for the H-plane horn.
short_docstring_tokens: Calculate the directivity for the H - plane horn .
comment: """
      Calculate the directivity for the H-plane horn.
      :param guide_height: The height of the waveguide feed (m).
      :param horn_width: The width of the horn (m).
      :param horn_effective_length: The effective length of the horn (m).
      :param frequency: The operating frequency (Hz).
      :return: The directivity for the H-plane horn.
      """$SEP$# Calculate the wavelength$SEP$# Calculate the arguments for the Fresnel integrals$SEP$# Calculate the Fresnel integrals