



'''simple docstring'''






from __future__ import annotations

from cmath import sqrt


def  snake_case_     (					_lowerCAmelCase  :						int   ,      _lowerCAmelCase  :						int   ,      _lowerCAmelCase  :						int  )      ->   tuple[complex, complex]:

							if a == 0:
														raise ValueError('''Coefficient \'a\' must not be zero.'''  )
							UpperCAmelCase :       List[Any] 							=		b * b - 4 * a * c

							UpperCAmelCase :       int 							=		(-b + sqrt(_lowerCAmelCase  )) / (2 * a)
							UpperCAmelCase :       List[Any] 							=		(-b - sqrt(_lowerCAmelCase  )) / (2 * a)

							return (
							    root_a.real if not root_a.imag else root_a,
							    root_a.real if not root_a.imag else root_a,
							)


def  snake_case_     (					)      ->   Union[str, Any]:
							UpperCAmelCase							,		UpperCAmelCase :       List[str] 							=		quadratic_roots(a=5   ,      b=6   ,      c=1  )
							print(f"""The solutions are: {solutiona} and {solutiona}"""  )


if __name__ == "__main__":
						main()










'''simple docstring'''






from __future__ import annotations


def  snake_case_     (					_lowerCAmelCase  :						list[int | float]   ,      _lowerCAmelCase  :						int   ,      _lowerCAmelCase  :						int  )      ->   int | float:
							if len(_lowerCAmelCase  ) == 0:
														raise ValueError('''find_max() arg is an empty sequence'''  )
							if (
							    left >= len(_lowerCAmelCase  )
							    or left < -len(_lowerCAmelCase  )
							    or right >= len(_lowerCAmelCase  )
							    or right < -len(_lowerCAmelCase  )
							):
														raise IndexError('''list index out of range'''  )
							if left == right:
														return nums[left]
							UpperCAmelCase :       List[Any] 							=		(left + right) >> 1  # the middle
							UpperCAmelCase :       Optional[Any] 							=		find_max(_lowerCAmelCase   ,      _lowerCAmelCase   ,      _lowerCAmelCase  )  # find max in range[left, mid]
							UpperCAmelCase :       Dict 							=		find_max(_lowerCAmelCase   ,      mid + 1   ,      _lowerCAmelCase  )  # find max in range[mid + 1, right]

							return left_max if left_max >= right_max else right_max


if __name__ == "__main__":
						import doctest

						doctest.testmod(verbose=True)





