"""simple docstring"""




def 							SCREAMING_SNAKE_CASE					(      _lowerCamelCase						:	float     )	->				float:
  return 10 - x * x





def 							SCREAMING_SNAKE_CASE					(      _lowerCamelCase						:	float      ,_lowerCamelCase						:	float     )	->				float:
  # Bolzano theory in order to find if there is a root between a and b
  if equation(_lowerCamelCase     ) * equation(_lowerCamelCase     ) >= 0:
    raise ValueError("""Wrong space!"""     )

  _lowerCAmelCase						:	List[str]        =					a
  while (b - a) >= 0.01:
    # Find middle point
    _lowerCAmelCase						:	str        =					(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						:	int        =					c
    else:
      _lowerCAmelCase						:	Union[str, Any]        =					c
  return c


if __name__ == "__main__":
     import doctest

     doctest.testmod()

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





"""simple docstring"""




_a				:		Any	   =       '\n# Transformers installation\n! pip install transformers datasets\n# To install from source instead of the last release, comment the command above and uncomment the following one.\n# ! pip install git+https://github.com/huggingface/transformers.git\n'

_a				:		List[Any]	   =       [{'type': 'code', 'content': INSTALL_CONTENT}]
_a				:		Union[str, Any]	   =       {
    '{processor_class}': 'FakeProcessorClass',
    '{model_class}': 'FakeModelClass',
    '{object_class}': 'FakeObjectClass',
}




