"""simple docstring"""
import warnings

from ...utils import logging
from .image_processing_videomae import VideoMAEImageProcessor


SCREAMING_SNAKE_CASE__      						=  logging.get_logger(__name__)



class   lowerCAmelCase_    (			lowerCAmelCase					):



				"""simple docstring"""

				def __init__(				self		,    *lowerCAmelCase		,    **lowerCAmelCase    ):






										"""simple docstring"""

										warnings.warn(
										    'The class VideoMAEFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
										    ' Please use VideoMAEImageProcessor instead.'		,    lowerCAmelCase		,    )
										super().__init__(*lowerCAmelCase		,    **lowerCAmelCase    )



"""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")


