

from __future__ import annotations

from cmath import sqrt







def 		_lowercase (     lowercase__   ,	lowercase__   ,	lowercase__						):

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

      __lowerCAmelCase					:						List[str]					=					(-b + sqrt(lowercase__						)) / (2 * a)
      __lowerCAmelCase					:						List[str]					=					(-b - sqrt(lowercase__						)) / (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 		_lowercase (     ):
      __lowerCAmelCase,							__lowerCAmelCase					:						int					=					quadratic_roots(a=5   ,	b=6   ,	c=1						)
      print(f"""The solutions are: {solutiona} and {solutiona}"""						)


if __name__ == "__main__":
 main()





def 		_lowercase (     lowercase__   ,	lowercase__						):
      if a < 0 or b < 0:
            raise ValueError('''the value of both inputs must be positive'''						)
      __lowerCAmelCase					:						int					=					str(bin(lowercase__						)						)[2:]  # remove the leading "0b"
      __lowerCAmelCase					:						Any					=					str(bin(lowercase__						)						)[2:]
      __lowerCAmelCase					:						List[str]					=					max(len(lowercase__						)   ,	len(lowercase__						)						)
      return "0b" + "".join(
          str(int('''1''' in (char_a, char_b)						)						)
          for char_a, char_b in zip(a_binary.zfill(lowercase__						)   ,	b_binary.zfill(lowercase__						)						)						)


if __name__ == "__main__":
 import doctest

 doctest.testmod()


