


'''simple docstring'''





from math import factorial, radians






def 						UpperCAmelCase__(				_SCREAMING_SNAKE_CASE					: float,_SCREAMING_SNAKE_CASE					: int = 18,_SCREAMING_SNAKE_CASE					: int = 10 ):






			"""simple docstring"""




			__A=	angle_in_degrees - ((angle_in_degrees // 3_60.0) * 3_60.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


UpperCAmelCase__  			=				{}

try:
					if not is_sentencepiece_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					UpperCAmelCase__  			=				['''BartphoTokenizer''']

if TYPE_CHECKING:
					try:
										if not is_sentencepiece_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .tokenization_bartpho import BartphoTokenizer

else:
					import sys

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



