





'''simple docstring'''


from __future__ import annotations

from cmath import sqrt


def 	__a(SCREAMING_SNAKE_CASE_  :					int		,       SCREAMING_SNAKE_CASE_  :					int		,       SCREAMING_SNAKE_CASE_  :					int    ):



    '''simple docstring'''





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

    _lowerCAmelCase				=      (-b + sqrt(lowerCAmelCase__    )) / (2 * a)
    _lowerCAmelCase				=      (-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 	__a():



    '''simple docstring'''





    _lowerCAmelCase			,			_lowerCAmelCase				=      quadratic_roots(a=5		,       b=6		,       c=1    )
    print(F'''The solutions are: {solutiona} and {solutiona}'''    )


if __name__ == "__main__":
       main()









'''simple docstring'''


def 	__a(SCREAMING_SNAKE_CASE_  :					str		,       SCREAMING_SNAKE_CASE_  :					bool = False    ):



    '''simple docstring'''





    if not isinstance(SCREAMING_SNAKE_CASE_		,       SCREAMING_SNAKE_CASE_    ):
        _lowerCAmelCase				=      F'''Expected string as input, found {type(SCREAMING_SNAKE_CASE_    )}'''
        raise ValueError(SCREAMING_SNAKE_CASE_    )
    if not isinstance(SCREAMING_SNAKE_CASE_		,       SCREAMING_SNAKE_CASE_    ):
        _lowerCAmelCase				=      F'''Expected boolean as use_pascal parameter, found {type(SCREAMING_SNAKE_CASE_    )}'''
        raise ValueError(SCREAMING_SNAKE_CASE_    )

    _lowerCAmelCase				=      input_str.split("_"    )

    _lowerCAmelCase				=      0 if use_pascal else 1

    _lowerCAmelCase				=      words[start_index:]

    _lowerCAmelCase				=      [word[0].upper() + word[1:] for word in words_to_capitalize]

    _lowerCAmelCase				=      "" if use_pascal else words[0]

    return "".join([initial_word, *capitalized_words]    )


if __name__ == "__main__":
       from doctest import testmod

       testmod()


