
import cmath
import math






def    lowerCamelCase__				(				__lowerCAmelCase  :  float    ,							__lowerCAmelCase  :  float    ,							__lowerCAmelCase  :  float    ,							__lowerCAmelCase  :  float				):




			"""simple docstring"""


			lowerCAmelCase_						=	math.radians(__lowerCAmelCase				)
			lowerCAmelCase_						=	math.radians(__lowerCAmelCase				)

			# Convert voltage and current to rectangular form
			lowerCAmelCase_						=	cmath.rect(__lowerCAmelCase    ,							__lowerCAmelCase				)
			lowerCAmelCase_						=	cmath.rect(__lowerCAmelCase    ,							__lowerCAmelCase				)

			# Calculate apparent power
			return voltage_rect * current_rect


if __name__ == "__main__":
			import doctest

			doctest.testmod()





from argparse import ArgumentParser

from .add_new_model import AddNewModelCommand
from .add_new_model_like import AddNewModelLikeCommand
from .convert import ConvertCommand
from .download import DownloadCommand
from .env import EnvironmentCommand
from .lfs import LfsCommands
from .pt_to_tf import PTtoTFCommand
from .run import RunCommand
from .serving import ServeCommand
from .user import UserCommands






def    lowerCamelCase__				(				):




			"""simple docstring"""


			lowerCAmelCase_						=	ArgumentParser("Transformers CLI tool"    ,							usage="transformers-cli <command> [<args>]"				)
			lowerCAmelCase_						=	parser.add_subparsers(help="transformers-cli command helpers"				)

			# Register commands
			ConvertCommand.register_subcommand(__lowerCAmelCase				)
			DownloadCommand.register_subcommand(__lowerCAmelCase				)
			EnvironmentCommand.register_subcommand(__lowerCAmelCase				)
			RunCommand.register_subcommand(__lowerCAmelCase				)
			ServeCommand.register_subcommand(__lowerCAmelCase				)
			UserCommands.register_subcommand(__lowerCAmelCase				)
			AddNewModelCommand.register_subcommand(__lowerCAmelCase				)
			AddNewModelLikeCommand.register_subcommand(__lowerCAmelCase				)
			LfsCommands.register_subcommand(__lowerCAmelCase				)
			PTtoTFCommand.register_subcommand(__lowerCAmelCase				)

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

			if not hasattr(__lowerCAmelCase    ,							"func"				):
						parser.print_help()
						exit(1				)

			# Run
			lowerCAmelCase_						=	args.func(__lowerCAmelCase				)
			service.run()


if __name__ == "__main__":
			main()



