


from math import factorial, radians
def        UpperCamelCase_(				_A   :float				,     _A   :int = 18				,     _A   :int = 10  )->		float:
			UpperCamelCase__					=       angle_in_degrees - ((angle_in_degrees // 3_6_0.0) * 3_6_0.0)

			# Converting from degrees to radians
			UpperCamelCase__					=       radians(_A  )

			UpperCamelCase__					=       angle_in_radians
			UpperCamelCase__					=       3
			UpperCamelCase__					=       -1

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

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

			return round(_A				,     _A  )


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






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__)


