



"""simple docstring"""


from decimal import Decimal, getcontext
from math import ceil, factorial

def  _lowerCAmelCase      (   lowercase_						):

						if not isinstance(lowercase_		,	lowercase_						):
												raise TypeError('Undefined for non-integers'						)
						elif precision < 1:
												raise ValueError('Undefined for non-natural numbers'						)

						UpperCAmelCase             = precision
						UpperCAmelCase             = ceil(precision / 14						)
						UpperCAmelCase             = 426880 * Decimal(10005						).sqrt()
						UpperCAmelCase             = 1
						UpperCAmelCase             = 13591409
						UpperCAmelCase             = Decimal(lowercase_						)
						for k in range(1		,	lowercase_						):
												UpperCAmelCase             = factorial(6 * k						) // (factorial(3 * k						) * factorial(lowercase_						) ** 3)
												linear_term += 545140134
												exponential_term *= -262537412640768000
												partial_sum += Decimal(multinomial_term * linear_term						) / exponential_term
						return str(constant_term / partial_sum						)[:-1]


if __name__ == "__main__":
				snake_case_				     =       50
				print(f'''The first {n} digits of pi is: {pi(n)}''')









snake_case				:    str       				=     '''
# Transformers installation
! pip install transformers datasets
# To install from source instead of the last release, comment the command above and uncomment the following one.
# ! pip install git+https://github.com/huggingface/transformers.git
'''

snake_case				:    List[Any]       				=     [{'''type''': '''code''', '''content''': INSTALL_CONTENT}]
snake_case				:    int       				=     {
    '''{processor_class}''': '''FakeProcessorClass''',
    '''{model_class}''': '''FakeModelClass''',
    '''{object_class}''': '''FakeObjectClass''',
}





