


"""simple docstring"""


import argparse


__snake_case    					=					'docs/source/_static/js/custom.js'


def    _lowerCamelCase   (     lowerCamelCase__	:							Any  ):
 with open(lowerCamelCase__       ,		encoding="""utf-8"""       ,		newline="""\n"""  ) as f:
  lowercase__       :       List[str]				=						f.readlines()
 lowercase__       :       List[Any]				=						0

 # First let's put the right version
 while not lines[index].startswith("""const stableVersion ="""  ):
  index += 1
 lowercase__       :       Union[str, Any]				=						f'''const stableVersion = "v{version}"\n'''

 # Then update the dictionary
 while not lines[index].startswith("""const versionMapping = {"""  ):
  index += 1

 # We go until the end
 while not lines[index].startswith("""}"""  ):
  index += 1
 # We add the new version at the end
 lines[index - 1] += f'''    "v{version}": "v{version}",\n'''

 with open(lowerCamelCase__       ,		"""w"""       ,		encoding="""utf-8"""       ,		newline="""\n"""  ) as f:
  f.writelines(lowerCamelCase__  )


if __name__ == "__main__":
   __snake_case    					=					argparse.ArgumentParser()
   parser.add_argument('--version', help='Release version.')
   __snake_case    					=					parser.parse_args()
   update_custom_js(args.version)



"""simple docstring"""


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


def    _lowerCamelCase   (     lowerCamelCase__	:							int  ):

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

 lowercase__       :       List[str]				=						precision
 lowercase__       :       Optional[int]				=						ceil(precision / 14  )
 lowercase__       :       Union[str, Any]				=						42_68_80 * Decimal(1_00_05  ).sqrt()
 lowercase__       :       Optional[Any]				=						1
 lowercase__       :       Optional[Any]				=						13_59_14_09
 lowercase__       :       List[Any]				=						Decimal(lowerCamelCase__  )
 for k in range(1       ,		lowerCamelCase__  ):
  lowercase__       :       Optional[int]				=						factorial(6 * k  ) // (factorial(3 * k  ) * factorial(lowerCamelCase__  ) ** 3)
  linear_term += 5_45_14_01_34
  exponential_term *= -26_25_37_41_26_40_76_80_00
  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)}")