"""simple docstring"""
def    lowerCAmelCase__    (			_UpperCamelCase       :				int					)					->				int:





						"""simple docstring"""






						assert (
						    isinstance(_UpperCamelCase ,			_UpperCamelCase					) and number_of_steps > 0
						), f"""number_of_steps needs to be positive integer, your input {number_of_steps}"""
						if number_of_steps == 1:
												return 1
						snake_case					,snake_case								=			1, 1
						for _ in range(number_of_steps - 1					):
												snake_case					,snake_case								=			current + previous, current
						return current


if __name__ == "__main__":
					import doctest

					doctest.testmod()



"""simple docstring"""
import math





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





						"""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 > 3_6_0:
												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(_UpperCamelCase					)					) ** 2)


if __name__ == "__main__":
					import doctest

					doctest.testmod(name="malus_law")


