
"""simple docstring"""






from math import factorial, pi



def      lowerCAmelCase__			(		__magic_name__			,   __magic_name__ = 3_0      )						->float:

			if not isinstance(__magic_name__			,   (int, float)      ):
						raise ValueError("maclaurin_sin() requires either an int or float for theta"      )

			if not isinstance(__magic_name__			,   __magic_name__      ) or accuracy <= 0:
						raise ValueError("maclaurin_sin() requires a positive int for accuracy"      )

			__lowercase       =       float(__magic_name__      )
			__lowercase       =       theta // (2 * pi)
			theta -= 2 * div * pi
			return sum(
			    (-1) ** r * theta ** (2 * r + 1) / factorial(2 * r + 1      ) for r in range(__magic_name__      )      )



def      lowerCAmelCase__			(		__magic_name__			,   __magic_name__ = 3_0      )						->float:

			if not isinstance(__magic_name__			,   (int, float)      ):
						raise ValueError("maclaurin_cos() requires either an int or float for theta"      )

			if not isinstance(__magic_name__			,   __magic_name__      ) or accuracy <= 0:
						raise ValueError("maclaurin_cos() requires a positive int for accuracy"      )

			__lowercase       =       float(__magic_name__      )
			__lowercase       =       theta // (2 * pi)
			theta -= 2 * div * pi
			return sum((-1) ** r * theta ** (2 * r) / factorial(2 * r      ) for r in range(__magic_name__      )      )


if __name__ == "__main__":
					import doctest

					doctest.testmod()

					print(maclaurin_sin(10))
					print(maclaurin_sin(-10))
					print(maclaurin_sin(10, 15))
					print(maclaurin_sin(-10, 15))

					print(maclaurin_cos(5))
					print(maclaurin_cos(-5))
					print(maclaurin_cos(10, 15))
					print(maclaurin_cos(-10, 15))







"""simple docstring"""






_lowercase							=				'''
# Installazione di Transformers
! pip install transformers datasets
# Per installare dalla fonte invece dell\'ultima versione rilasciata, commenta il comando sopra e
# rimuovi la modalità commento al comando seguente.
# ! pip install git+https://github.com/huggingface/transformers.git
'''

_lowercase							=				[{'''type''': '''code''', '''content''': INSTALL_CONTENT}]
_lowercase							=				{
    '''{processor_class}''': '''FakeProcessorClass''',
    '''{model_class}''': '''FakeModelClass''',
    '''{object_class}''': '''FakeObjectClass''',
}





