
'''simple docstring'''

def        UpperCAmelCase_ (  lowerCamelCase_			):







 """simple docstring"""


 return 1_0 - x * x


def        UpperCAmelCase_ (  lowerCamelCase_      ,			lowerCamelCase_			):







 """simple docstring"""


 if equation(lowerCamelCase_			) * equation(lowerCamelCase_			) >= 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(lowerCamelCase_			) == 0.0:
   break
  # Decide the side to repeat the steps
  if equation(lowerCamelCase_			) * equation(lowerCamelCase_			) < 0:
   lowerCAmelCase__     :   Dict     		=	c
  else:
   lowerCAmelCase__     :   Optional[int]     		=	c
 return c


if __name__ == "__main__":
     import doctest

     doctest.testmod()

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







'''simple docstring'''

import os


# All paths are set with the intent you should run this script from the root of the repo with the command
# python utils/check_doctest_list.py
snake_case									=    """."""


if __name__ == "__main__":
     snake_case									=    os.path.join(REPO_PATH, """utils/documentation_tests.txt""")
     snake_case									=    []
     snake_case									=    []
     with open(doctest_file_path) as fp:
          for line in fp:
               snake_case									=    line.strip()
               snake_case									=    os.path.join(REPO_PATH, line)
               if not (os.path.isfile(path) or os.path.isdir(path)):
                    non_existent_paths.append(line)
               all_paths.append(path)
     if len(non_existent_paths) > 0:
          snake_case									=    """\n""".join(non_existent_paths)
          raise ValueError(f'`utils/documentation_tests.txt` contains non-existent paths:\n{non_existent_paths}')
     if all_paths != sorted(all_paths):
          raise ValueError("""Files in `utils/documentation_tests.txt` are not in alphabetical order.""")





