
import math




def    __UpperCamelCase     (				lowerCAmelCase__							:				float  ,   lowerCAmelCase__							:				float  ):
 return math.pow(lowerCAmelCase__  ,   2  ) - a




def    __UpperCamelCase     (				lowerCAmelCase__							:				float  ):
 return 2 * x




def    __UpperCamelCase     (				lowerCAmelCase__							:				float  ):
 __a :  Dict						=  2.0

 while start <= a:
  __a :  List[Any]						=  math.pow(lowerCAmelCase__  ,   2  )

 return start




def    __UpperCamelCase     (				lowerCAmelCase__							:				float  ,   lowerCAmelCase__							:				int = 9_9_9_9  ,   lowerCAmelCase__							:				float = 0.00_00_00_00_00_00_01  ):

 if a < 0:
  raise ValueError('''math domain error'''  )

 __a :  List[Any]						=  get_initial_point(lowerCAmelCase__  )

 for _ in range(lowerCAmelCase__  ):
  __a :  Optional[Any]						=  value
  __a :  str						=  value - fx(lowerCAmelCase__  ,   lowerCAmelCase__  ) / fx_derivative(lowerCAmelCase__  )
  if abs(prev_value - value  ) < tolerance:
   return value

 return value


if __name__ == "__main__":
      from doctest import testmod

      testmod()


from __future__ import annotations




def    __UpperCamelCase     (				lowerCAmelCase__							:				list[float]  ,   lowerCAmelCase__							:				list[float]  ):
 __a :  Dict						=  sorted(numsa + numsa  )
 __a				,       __a :  Optional[Any]						=  divmod(len(lowerCAmelCase__  )  ,   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()
      lowercase__       =[float(x) for x in input('Enter the elements of first array: ').split()]
      lowercase__       =[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)}""")
