




'''simple docstring'''






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






def 		UpperCamelCase__      (		__SCREAMING_SNAKE_CASE		)    ->   str:

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

      snake_case__       :   int	      =    precision
      snake_case__       :   List[str]	      =    ceil(precision / 14		)
      snake_case__       :   List[Any]	      =    42_6880 * Decimal(1_0005		).sqrt()
      snake_case__       :   Union[str, Any]	      =    1
      snake_case__       :   List[Any]	      =    1359_1409
      snake_case__       :   Optional[Any]	      =    Decimal(__SCREAMING_SNAKE_CASE		)
      for k in range(1				,      __SCREAMING_SNAKE_CASE		):
            snake_case__       :   str	      =    factorial(6 * k		) // (factorial(3 * k		) * factorial(__SCREAMING_SNAKE_CASE		) ** 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'''






# flake8: noqa
# Lint as: python3
A_			      =		[
    "VerificationMode",
    "Version",
    "disable_progress_bar",
    "enable_progress_bar",
    "is_progress_bar_enabled",
    "experimental",
]

from .info_utils import VerificationMode
from .logging import disable_progress_bar, enable_progress_bar, is_progress_bar_enabled
from .version import Version
from .experimental import experimental
