




import math




def 			__magic_name__				( A		:					float,  A		:					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 > 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(A   )   ) ** 2)


if __name__ == "__main__":
		import doctest

		doctest.testmod(name='malus_law')













"""simple docstring"""
def      __lowerCamelCase   (							a_     :		int ,   a_     :		str							)			->      Optional[int]:
      __SCREAMING_SNAKE_CASE   :Optional[int]						=  [1]
      for i in range(2 ,   a_							):
            factorials.append(factorials[-1] * i							)
      assert 0 <= k < factorials[-1] * n, "k out of bounds"

      __SCREAMING_SNAKE_CASE   :List[str]						=  []
      __SCREAMING_SNAKE_CASE   :Optional[Any]						=  list(range(a_							)							)

      # Find permutation
      while factorials:
            __SCREAMING_SNAKE_CASE   :Optional[int]						=  factorials.pop()
            __SCREAMING_SNAKE_CASE				,__SCREAMING_SNAKE_CASE   :Dict						=  divmod(a_ ,   a_							)
            permutation.append(elements[number]							)
            elements.remove(elements[number]							)
      permutation.append(elements[0]							)

      return permutation


if __name__ == "__main__":
  import doctest

  doctest.testmod()