

'''simple docstring'''





import warnings

from ...utils import logging
from .image_processing_segformer import SegformerImageProcessor


A_	= logging.get_logger(__name__)


class  UpperCAmelCase (							_SCREAMING_SNAKE_CASE    ):

		'''simple docstring'''






		def __init__(					self   ,			*SCREAMING_SNAKE_CASE_   ,			**SCREAMING_SNAKE_CASE_		)  ->     None:






							'''simple docstring'''



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







'''simple docstring'''






import math







def 							UpperCamelCase_     (       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 > 3_60:
    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")



