


def   _lowercase(					__a				:						Optional[Any]     ):
							return 10 - x * x






def   _lowercase(					__a				:						str    ,     __a				:						Any     ):
							# Bolzano theory in order to find if there is a root between a and b
							if equation(__a     ) * equation(__a     ) >= 0:
														raise ValueError('Wrong space!'     )

							a__      =a
							while (b - a) >= 0.01:
														# Find middle point
														a__      =(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:
																					a__      =c
														else:
																					a__      =c
							return c


if __name__ == "__main__":
	import doctest

	doctest.testmod()

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









"""simple docstring"""
from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
			from .pipeline_vq_diffusion import LearnedClassifierFreeSamplingEmbeddings, VQDiffusionPipeline

