

from __future__ import annotations

from cmath import sqrt
def     UpperCAmelCase_       (						_A				,		_A				,		_A    ):





					'''simple docstring'''




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

					SCREAMING_SNAKE_CASE__   =   (-b + sqrt(_A    )) / (2 * a)
					SCREAMING_SNAKE_CASE__   =   (-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'''




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


if __name__ == "__main__":
							main()





from argparse import ArgumentParser

from .env import EnvironmentCommand
def     UpperCAmelCase_       (						):





     '''simple docstring'''




     SCREAMING_SNAKE_CASE__   =   ArgumentParser('''Diffusers CLI tool'''				,		usage='''diffusers-cli <command> [<args>]'''    )
     SCREAMING_SNAKE_CASE__   =   parser.add_subparsers(help='''diffusers-cli command helpers'''    )

     # Register commands
     EnvironmentCommand.register_subcommand(_A    )

     # Let's go
     SCREAMING_SNAKE_CASE__   =   parser.parse_args()

     if not hasattr(_A				,		'''func'''    ):
          parser.print_help()
          exit(1    )

     # Run
     SCREAMING_SNAKE_CASE__   =   args.func(_A    )
     service.run()


if __name__ == "__main__":
       main()


