'''simple docstring'''






from math import asin, atan, cos, radians, sin, sqrt, tan

SCREAMING_SNAKE_CASE_						 =      6_37_81_37.0
SCREAMING_SNAKE_CASE_						 =      6_35_67_52.31_42_45
SCREAMING_SNAKE_CASE_						 =      6_37_81_37






def 			UpperCamelCase__       (       _lowercase     :					str ,     _lowercase     :					int ,     _lowercase     :					Union[str, Any] ,     _lowercase     :					List[str]  )				->						Optional[Any]:
  __UpperCAmelCase:       List[str]		=			(AXIS_A - AXIS_B) / AXIS_A
  __UpperCAmelCase:       Dict		=			atan((1 - flattening) * tan(radians(lowerCAmelCase__  )  )  )
  __UpperCAmelCase:       Dict		=			atan((1 - flattening) * tan(radians(lowerCAmelCase__  )  )  )
  __UpperCAmelCase:       Union[str, Any]		=			radians(lowerCAmelCase__  )
  __UpperCAmelCase:       Optional[int]		=			radians(lowerCAmelCase__  )
  # Equation
  __UpperCAmelCase:       Optional[Any]		=			sin((phi_a - phi_a) / 2  )
  __UpperCAmelCase:       str		=			sin((lambda_a - lambda_a) / 2  )
  # Square both values
  sin_sq_phi *= sin_sq_phi
  sin_sq_lambda *= sin_sq_lambda
  __UpperCAmelCase:       Optional[Any]		=			sqrt(sin_sq_phi + (cos(lowerCAmelCase__  ) * cos(lowerCAmelCase__  ) * sin_sq_lambda)  )
  return 2 * RADIUS * asin(lowerCAmelCase__  )


if __name__ == "__main__":
    import doctest

    doctest.testmod()






import warnings

from ...utils import logging
from .image_processing_yolos import YolosImageProcessor


_lowercase		:  int			       =logging.get_logger(__name__)






class 						UpperCamelCase_  (  snake_case__							):



					def __init__(		self     :     Tuple       ,      *lowerCamelCase     :     List[Any]       ,      **lowerCamelCase     :     Union[str, Any]						):
							warnings.warn(
							    'The class YolosFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
							    ' use YolosImageProcessor instead.'       ,      lowerCamelCase       ,      )
							super().__init__(*lowerCamelCase       ,      **lowerCamelCase						)
