

'''simple docstring'''

from math import factorial, radians




def    A_  ( snake_case      ,       snake_case = 18      ,       snake_case = 10 ):
  SCREAMING_SNAKE_CASE:int						      =					angle_in_degrees - ((angle_in_degrees // 360.0) * 360.0)

  # Converting from degrees to radians
  SCREAMING_SNAKE_CASE:Union[str, Any]						      =					radians(snake_case )

  SCREAMING_SNAKE_CASE:List[str]						      =					angle_in_radians
  SCREAMING_SNAKE_CASE:List[Any]						      =					3
  SCREAMING_SNAKE_CASE:Union[str, Any]						      =					-1

  for _ in range(snake_case ):
    result += (b * (angle_in_radians**a)) / factorial(snake_case )

    SCREAMING_SNAKE_CASE:int						      =					-b  # One positive term and the next will be negative and so on...
    a += 2  # Increased by 2 for every term.

  return round(snake_case      ,       snake_case )


if __name__ == "__main__":
    __import__("doctest").testmod()









'''simple docstring'''

from ....utils import logging


A_       						=							logging.get_logger(__name__)





class 							_snake_case (       _a						):
   def __init__( self			:      Optional[Any]     ,SCREAMING_SNAKE_CASE__			:      Optional[int]     ,SCREAMING_SNAKE_CASE__			:      Optional[Any]=None     ,SCREAMING_SNAKE_CASE__			:      Optional[int]=2_048							):
     SCREAMING_SNAKE_CASE:int						      =					config.__dict__
     SCREAMING_SNAKE_CASE:List[str]						      =					modal_hidden_size
     if num_labels:
       SCREAMING_SNAKE_CASE:str						      =					num_labels






