


def 						lowercase_(    SCREAMING_SNAKE_CASE_      ):


  '''simple docstring'''

  return 10 - x * x






def 						lowercase_(    SCREAMING_SNAKE_CASE_ ,		SCREAMING_SNAKE_CASE_      ):


  '''simple docstring'''

  if equation(_a      ) * equation(_a      ) >= 0:
    raise ValueError("Wrong space!"      )

  lowerCamelCase					:   Tuple       =							a
  while (b - a) >= 0.01:
    # Find middle point
    lowerCamelCase					:   Optional[int]       =							(a + b) / 2
    # Check if middle point is root
    if equation(_a      ) == 0.0:
      break
    # Decide the side to repeat the steps
    if equation(_a      ) * equation(_a      ) < 0:
      lowerCamelCase					:   Any       =							c
    else:
      lowerCamelCase					:   int       =							c
  return c


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   print(bisection(-2, 5))
   print(bisection(0, 6))






"""simple docstring"""


from __future__ import annotations



def   _A					(	_a	:						list[float]     ,   _a	:						list[float]				):



      """simple docstring"""






      A				  =		sorted(numsa + numsa				)
      A  ,			A				  =		divmod(len(_a				)     ,   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()
  UpperCAmelCase													=[float(x) for x in input("Enter the elements of first array: ").split()]
  UpperCAmelCase													=[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)}""")




