


import math
from collections.abc import Callable






def      lowerCamelCase_    (       _a	,   _a	,   _a       ):




		"""simple docstring"""






		lowerCAmelCase__   :			Any         =					xa
		lowerCAmelCase__   :			List[str]         =					xa
		while True:
				if x_n == x_na or function(UpperCamelCase__       ) == function(UpperCamelCase__       ):
						raise ZeroDivisionError('''float division by zero, could not find root'''       )
				lowerCAmelCase__   :			Tuple         =					x_na - (
				    function(UpperCamelCase__       ) / ((function(UpperCamelCase__       ) - function(UpperCamelCase__       )) / (x_na - x_n))
				)
				if abs(x_na - x_na       ) < 10**-5:
						return x_na
				lowerCAmelCase__   :			Union[str, Any]         =					x_na
				lowerCAmelCase__   :			List[str]         =					x_na






def      lowerCamelCase_    (       _a       ):




		"""simple docstring"""






		return math.pow(UpperCamelCase__	,   3       ) - (2 * x) - 5


if __name__ == "__main__":
		print(intersection(f, 3, 3.5))











def 						__SCREAMING_SNAKE_CASE  (				UpperCamelCase__ )  ->				list[int]:







			'''simple docstring'''

			if length <= 0 or not isinstance(UpperCamelCase__			,			UpperCamelCase__ ):
						raise ValueError('''Length must be a positive integer.''' )
			return [n * (2 * n - 1) for n in range(UpperCamelCase__ )]


if __name__ == "__main__":
				print(hexagonal_numbers(length=5))
				print(hexagonal_numbers(length=10))



