"""simple docstring"""






import warnings

from ...utils import logging
from .image_processing_poolformer import PoolFormerImageProcessor


_A   					=    logging.get_logger(__name__)

class lowerCamelCase		(__UpperCAmelCase      ):






					'''simple docstring'''


					def __init__(						self			:				Dict   , *_snake_case			:				Optional[Any]   , **_snake_case			:				Optional[Any]		)							->       Tuple:
									warnings.warn(
									    "The class PoolFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers."
									    " Please use PoolFormerImageProcessor instead."   , _snake_case   , )
									super().__init__(*_snake_case   , **_snake_case		)





"""simple docstring"""






import math




def 						SCREAMING_SNAKE_CASE					(  __UpperCAmelCase  ,					__UpperCAmelCase       )							->   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 > 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(__UpperCAmelCase       )       ) ** 2)


if __name__ == "__main__":
						import doctest

						doctest.testmod(name='malus_law')




