


'''simple docstring'''
def    a__			(   lowerCAmelCase__    ,   lowerCAmelCase__    ,   lowerCAmelCase__    ,   lowerCAmelCase__    ,   lowerCAmelCase__    ,   )       ->      float:
    UpperCAmelCase__     :						Optional[int]						=							[redshift, radiation_density, matter_density, dark_energy]
    if any(p < 0 for p in parameters		):
        raise ValueError('''All input parameters must be positive'''		)

    if any(p > 1 for p in parameters[1:4]		):
        raise ValueError('''Relative densities cannot be greater than one'''		)
    else:
        UpperCAmelCase__     :						Any						=							1 - (matter_density + radiation_density + dark_energy)

        UpperCAmelCase__     :						Tuple						=							(
            radiation_density * (redshift + 1) ** 4
            + matter_density * (redshift + 1) ** 3
            + curvature * (redshift + 1) ** 2
            + dark_energy
        )

        UpperCAmelCase__     :						Optional[Any]						=							hubble_constant * e_a ** (1 / 2)
        return hubble


if __name__ == "__main__":
  import doctest

  # run doctest
  doctest.testmod()

  # demo LCDM approximation
  UpperCamelCase__          = 0.3

  print(
      hubble_parameter(
          hubble_constant=68.3,
          radiation_density=1e-4,
          matter_density=matter_density,
          dark_energy=1 - matter_density,
          redshift=0,
      )
  )







from __future__ import annotations

def      UpperCAmelCase_    (    _UpperCAmelCase							:list[float]  ,						_UpperCAmelCase							:list[float]				)	->				float:
     '''simple docstring'''


     A_          =       sorted(numsa + numsa				)
     A_   ,    A_          =       divmod(len(_UpperCAmelCase				)  ,						2				)
     if mod == 1:
          return all_numbers[div]
     else:
          return (all_numbers[div] + all_numbers[div - 1]) / 2


if __name__ == "__main__":
      import doctest

      doctest.testmod()
      a__      :     Optional[Any]         =		[float(x) for x in input('Enter the elements of first array: ').split()]
      a__      :     int         =		[float(x) for x in input('Enter the elements of second array: ').split()]
      print(f'''The median of two arrays is: {median_of_two_arrays(array_a, array_a)}''')



