


"""simple docstring"""






def 				A_       ( snake_case__		)					->  float:
			return 10 - x * x





def 				A_       ( snake_case__       ,					snake_case__		)					->  float:





			if equation(snake_case__		) * equation(snake_case__		) >= 0:
						raise ValueError('''Wrong space!'''		)

			_UpperCamelCase					:str					     =	a
			while (b - a) >= 0.01:
						# Find middle point
						_UpperCamelCase					:Dict					     =	(a + b) / 2
						# Check if middle point is root
						if equation(snake_case__		) == 0.0:
									break
						# Decide the side to repeat the steps
						if equation(snake_case__		) * equation(snake_case__		) < 0:
									_UpperCamelCase					:int					     =	c
						else:
									_UpperCamelCase					:str					     =	c
			return c


if __name__ == "__main__":
					import doctest

					doctest.testmod()

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





"""simple docstring"""



from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


__snake_case       =       {
    """configuration_bigbird_pegasus""": [
        """BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """BigBirdPegasusConfig""",
        """BigBirdPegasusOnnxConfig""",
    ],
}

try:
  if not is_torch_available():
    raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
  pass
else:
  __snake_case       =       [
      """BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST""",
      """BigBirdPegasusForCausalLM""",
      """BigBirdPegasusForConditionalGeneration""",
      """BigBirdPegasusForQuestionAnswering""",
      """BigBirdPegasusForSequenceClassification""",
      """BigBirdPegasusModel""",
      """BigBirdPegasusPreTrainedModel""",
  ]


if TYPE_CHECKING:
  from .configuration_bigbird_pegasus import (
      BIGBIRD_PEGASUS_PRETRAINED_CONFIG_ARCHIVE_MAP,
      BigBirdPegasusConfig,
      BigBirdPegasusOnnxConfig,
  )

  try:
    if not is_torch_available():
      raise OptionalDependencyNotAvailable()
  except OptionalDependencyNotAvailable:
    pass
  else:
    from .modeling_bigbird_pegasus import (
        BIGBIRD_PEGASUS_PRETRAINED_MODEL_ARCHIVE_LIST,
        BigBirdPegasusForCausalLM,
        BigBirdPegasusForConditionalGeneration,
        BigBirdPegasusForQuestionAnswering,
        BigBirdPegasusForSequenceClassification,
        BigBirdPegasusModel,
        BigBirdPegasusPreTrainedModel,
    )


else:
  import sys

  __snake_case       =       _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)





