



"""simple docstring"""





from math import loga




def 	UpperCAmelCase     (		A	:						int       ):

  '''simple docstring'''


  if a < 0:
    raise ValueError('Input value must be a positive integer'       )
  elif isinstance(_A     ,				_A       ):
    raise TypeError('Input value must be a \'int\' type'       )
  return 0 if (a == 0) else int(loga(a & -a       )       )


if __name__ == "__main__":
     import doctest

     doctest.testmod()







"""simple docstring"""





from __future__ import annotations

from cmath import sqrt




def 	UpperCAmelCase     (		A	:						int     ,				A	:						int     ,				A	:						int       ):

		'''simple docstring'''


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

		_UpperCAmelCase							 =		(-b + sqrt(A       )) / (2 * a)
		_UpperCAmelCase							 =		(-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 	UpperCAmelCase     (		):

		'''simple docstring'''


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


if __name__ == "__main__":
					main()


