
"""simple docstring"""




from math import factorial, radians



def     __magic_name__		(					UpperCamelCase     :		float							,		UpperCamelCase     :		int = 18							,		UpperCamelCase     :		int = 10     )     ->						str:
    a__		=			angle_in_degrees - ((angle_in_degrees // 360.0) * 360.0)

    # Converting from degrees to radians
    a__		=			radians(_SCREAMING_SNAKE_CASE     )

    a__		=			angle_in_radians
    a__		=			3
    a__		=			-1

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

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

    return round(_SCREAMING_SNAKE_CASE							,		_SCREAMING_SNAKE_CASE     )


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






'''simple docstring'''





from typing import TYPE_CHECKING

from ...utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_sentencepiece_available,
    is_speech_available,
    is_torch_available,
)


UpperCAmelCase__  			=				{
    '''configuration_trocr''': ['''TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP''', '''TrOCRConfig'''],
    '''processing_trocr''': ['''TrOCRProcessor'''],
}


try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					UpperCAmelCase__  			=				[
					    '''TROCR_PRETRAINED_MODEL_ARCHIVE_LIST''',
					    '''TrOCRForCausalLM''',
					    '''TrOCRPreTrainedModel''',
					]


if TYPE_CHECKING:
					from .configuration_trocr import TROCR_PRETRAINED_CONFIG_ARCHIVE_MAP, TrOCRConfig
					from .processing_trocr import TrOCRProcessor

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_trocr import TROCR_PRETRAINED_MODEL_ARCHIVE_LIST, TrOCRForCausalLM, TrOCRPreTrainedModel

else:
					import sys

					UpperCAmelCase__  			=				_LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)



