
import math




def 	_SCREAMING_SNAKE_CASE					(		_lowerCamelCase :			float						,  _lowerCamelCase :			float)					->    List[Any]:






							'''simple docstring'''





							if initial_intensity < 0:
														raise ValueError("The value of intensity cannot be negative")
														# handling of negative values of initial intensity
							if angle < 0 or angle > 360:
														raise ValueError("In Malus Law, the angle is in the range 0-360 degrees")
														# handling of values out of allowed range
							return initial_intensity * (math.cos(math.radians(__lowerCAmelCase)) ** 2)


if __name__ == "__main__":
		import doctest

		doctest.testmod(name='malus_law')



from argparse import ArgumentParser

from .env import EnvironmentCommand






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

							# Register commands
							EnvironmentCommand.register_subcommand(__lowerCAmelCase   )

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

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

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


if __name__ == "__main__":
						main()




