
from ..utils import requires_backends


UpperCamelCase_  =	None

class     _SCREAMING_SNAKE_CASE							:





				def __init__(		self :		Optional[Any]					,      *snake_case_ :		Optional[int]					,      **snake_case_ :		Tuple							):


								"""simple docstring"""

								requires_backends(self					,      ['''detectron2''']							)






				@classmethod
				def        _UpperCAmelCase						(		cls :		List[str]					,      *snake_case_ :		Dict					,      **snake_case_ :		int							):


								"""simple docstring"""

								requires_backends(cls					,      ['''detectron2''']							)

UpperCamelCase_  =	10_00





def 							_lowerCamelCase			(					lowerCamelCase_:  float		):



				'''simple docstring'''







				return x * x





def 							_lowerCamelCase			(					lowerCamelCase_:  Tuple				,	lowerCamelCase_:  float				,	lowerCamelCase_:  float				,	lowerCamelCase_:  int = 4		):



				'''simple docstring'''







				assert callable(
				    lowerCamelCase_		), f"""the function(object) passed should be callable your input : {function}"""
				assert isinstance(lowerCamelCase_				,	(float, int)		), f"""a should be float or integer your input : {a}"""
				assert isinstance(function(lowerCamelCase_		)				,	(float, int)		), (
				    "the function should return integer or float return type of your function, "
				    f"""{type(lowerCamelCase_		)}"""
				)
				assert isinstance(lowerCamelCase_				,	(float, int)		), f"""b should be float or integer your input : {b}"""
				assert (
				    isinstance(lowerCamelCase_				,	lowerCamelCase_		) and precision > 0
				), f"""precision should be positive integer your input : {precision}"""

				# just applying the formula of simpson for approximate integration written in
				# mentioned article in first comment of this file and above this function

				A     :  Tuple   =				(b - a) / N_STEPS
				A     :  List[str]   =				function(lowerCamelCase_		) + function(lowerCamelCase_		)

				for i in range(1				,	lowerCamelCase_		):
								A     :  int   =				a + h * i
								result += function(lowerCamelCase_		) * (4 if i % 2 else 2)

				result *= h / 3
				return round(lowerCamelCase_				,	lowerCamelCase_		)


if __name__ == "__main__":
					import doctest

					doctest.testmod()