






"""simple docstring"""






from __future__ import annotations

from cmath import sqrt



def       _A    (__a					,       __a					,       __a							)				-> tuple[complex, complex]:
    """simple docstring"""






    if a == 0:
        raise ValueError('''Coefficient \'a\' must not be zero.'''							)
    SCREAMING_SNAKE_CASE_   :						Tuple							=	b * b - 4 * a * c

    SCREAMING_SNAKE_CASE_   :						Tuple							=	(-b + sqrt(__a							)) / (2 * a)
    SCREAMING_SNAKE_CASE_   :						List[Any]							=	(-b - sqrt(__a							)) / (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       _A    ()				-> int:
    """simple docstring"""






    SCREAMING_SNAKE_CASE_		,    SCREAMING_SNAKE_CASE_   :						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       _A    (__a					,       __a					,       __a							)				-> int | float:
    """simple docstring"""






    if len(__a							) == 0:
        raise ValueError('''find_max() arg is an empty sequence'''							)
    if (
        left >= len(__a							)
        or left < -len(__a							)
        or right >= len(__a							)
        or right < -len(__a							)
    ):
        raise IndexError('''list index out of range'''							)
    if left == right:
        return nums[left]
    SCREAMING_SNAKE_CASE_   :						str							=	(left + right) >> 1  # the middle
    SCREAMING_SNAKE_CASE_   :						int							=	find_max(__a					,       __a					,       __a							)  # find max in range[left, mid]
    SCREAMING_SNAKE_CASE_   :						str							=	find_max(__a					,       mid + 1					,       __a							)  # 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)


