




"""simple docstring"""






import math







def   _snake_case    (       lowercase__							,					lowercase__	):

				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(lowercase__	)	) ** 2)


if __name__ == "__main__":
			import doctest

			doctest.testmod(name="""malus_law""")











"""simple docstring"""






from pathlib import Path

import fire







def   _snake_case    (       lowercase__							,					lowercase__							,					lowercase__	):
				_lowerCamelCase  :    int					=					Path(lowercase__	)
				_lowerCamelCase  :    List[Any]					=					Path(lowercase__	)
				dest_dir.mkdir(exist_ok=lowercase__	)
				for path in src_dir.iterdir():
								_lowerCamelCase  :    str					=					[x.rstrip() for x in list(path.open().readlines()	)][:n]
								_lowerCamelCase  :    Any					=					dest_dir.joinpath(path.name	)
								print(lowercase__	)
								dest_path.open('w'	).write('\n'.join(lowercase__	)	)


if __name__ == "__main__":
			fire.Fire(minify)