'''simple docstring'''






import math






def  UpperCamelCase__					(					_lowercase    :				float   ,    _lowercase    :				float     )							->	float:

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


if __name__ == "__main__":
    import doctest

    doctest.testmod(name='malus_law')
'''simple docstring'''






def  UpperCamelCase__					(					_lowercase    :				list[int]   ,    _lowercase    :				list[int]     )							->	None:
  __UpperCAmelCase:					Dict		= len(_lowercase     )
  print("""The following activities are selected:"""     )

  # The first activity is always selected
  __UpperCAmelCase:					Dict		= 0
  print(_lowercase   ,    end=""","""     )

  # Consider rest of the activities
  for j in range(_lowercase     ):
    # If this activity has start time greater than
    # or equal to the finish time of previously
    # selected activity, then select it
    if start[j] >= finish[i]:
      print(_lowercase   ,    end=""","""     )
      __UpperCAmelCase:					Optional[int]		= j


if __name__ == "__main__":
    import doctest

    doctest.testmod()

    SCREAMING_SNAKE_CASE_	   =			[1, 3, 0, 5, 8, 5]
    SCREAMING_SNAKE_CASE_	   =			[2, 4, 6, 7, 9, 9]
    print_max_activities(start, finish)