




"""simple docstring"""

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



def      UpperCamelCase__   (						lowercase__     :   int      ):

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

		snake_case						:  str    	= precision
		snake_case						:  List[Any]    	= ceil(precision / 14      )
		snake_case						:  Dict    	= 42_6880 * Decimal(1_0005      ).sqrt()
		snake_case						:  Tuple    	= 1
		snake_case						:  Optional[int]    	= 1359_1409
		snake_case						:  Optional[int]    	= Decimal(lowercase__      )
		for k in range(1				,   lowercase__      ):
				snake_case						:  Any    	= factorial(6 * k      ) // (factorial(3 * k      ) * factorial(lowercase__      ) ** 3)
				linear_term += 5_4514_0134
				exponential_term *= -26_2537_4126_4076_8000
				partial_sum += Decimal(multinomial_term * linear_term      ) / exponential_term
		return str(constant_term / partial_sum      )[:-1]


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





'''simple docstring'''




import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


__snake_case    						=logging.get_logger(__name__)

class 		UpperCAmelCase_      (  __lowercase		):





     def __init__( self       :      Dict    ,      *UpperCAmelCase__       :      Dict    ,      **UpperCAmelCase__       :      List[str]    )				->  None:
        warnings.warn(
            'The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
            ' use FlavaImageProcessor instead.'    ,      UpperCAmelCase__    ,      )
        super().__init__(*UpperCAmelCase__    ,      **UpperCAmelCase__    )





