






"""simple docstring"""







from __future__ import annotations

from math import pi

# Define the Reduced Planck Constant ℏ (H bar), speed of light C, value of
# Pi and the function
_lowerCAmelCase            =	1.0_5457_1817E-34  # unit of ℏ : J * s

_lowerCAmelCase            =	3E8  # unit of c : m * s^-1


def      UpperCamelCase       ( _A  ,				_A  ,				_A )     ->       dict[str, float]:

				if (force, area, distance).count(0 ) != 1:
								raise ValueError("""One and only one argument must be 0""" )
				if force < 0:
								raise ValueError("""Magnitude of force can not be negative""" )
				if distance < 0:
								raise ValueError("""Distance can not be negative""" )
				if area < 0:
								raise ValueError("""Area can not be negative""" )
				if force == 0:
								lowercase    :      Any       = (REDUCED_PLANCK_CONSTANT * SPEED_OF_LIGHT * pi**2 * area) / (
								    240 * (distance) ** 4
								)
								return {"force": force}
				elif area == 0:
								lowercase    :      List[str]       = (240 * force * (distance) ** 4) / (
								    REDUCED_PLANCK_CONSTANT * SPEED_OF_LIGHT * pi**2
								)
								return {"area": area}
				elif distance == 0:
								lowercase    :      Tuple       = (
								    (REDUCED_PLANCK_CONSTANT * SPEED_OF_LIGHT * pi**2 * area) / (240 * force)
								) ** (1 / 4)
								return {"distance": distance}
				raise ValueError("""One and only one argument must be 0""" )


# Run doctest
if __name__ == "__main__":
				import doctest

				doctest.testmod()


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

def  __lowerCamelCase					( _lowercase			)       ->      str:

     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)}")


