"""simple docstring"""
from __future__ import annotations

from cmath import sqrt





def 				lowerCAmelCase__      (     _UpperCamelCase    :			int	,     _UpperCamelCase    :			int	,     _UpperCamelCase    :			int   )   ->			tuple[complex, complex]:





						"""simple docstring"""






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

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





						"""simple docstring"""






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


if __name__ == "__main__":
					main()



"""simple docstring"""
import cmath
import math





def 				lowerCAmelCase__      (     _UpperCamelCase    :			float	,     _UpperCamelCase    :			float	,     _UpperCamelCase    :			float	,     _UpperCamelCase    :			float   )   ->			complex:





						"""simple docstring"""






						snake_case        =     math.radians(_UpperCamelCase   )
						snake_case        =     math.radians(_UpperCamelCase   )

						# Convert voltage and current to rectangular form
						snake_case        =     cmath.rect(_UpperCamelCase	,     _UpperCamelCase   )
						snake_case        =     cmath.rect(_UpperCamelCase	,     _UpperCamelCase   )

						# Calculate apparent power
						return voltage_rect * current_rect


if __name__ == "__main__":
					import doctest

					doctest.testmod()


