



'''simple docstring'''
def   lowercase_	(   lowerCAmelCase__	:  int ):

			"""simple docstring"""





			__UpperCAmelCase   :      str										=     1
			__UpperCAmelCase   :      str										=     0
			__UpperCAmelCase   :      Dict										=     1
			__UpperCAmelCase   :      Optional[Any]										=     1
			__UpperCAmelCase   :      List[str]										=     3
			__UpperCAmelCase   :      Optional[Any]										=     3
			__UpperCAmelCase   :      Optional[Any]										=     limit
			__UpperCAmelCase   :      Dict										=     0

			__UpperCAmelCase   :      Dict										=     """"""
			while counter != decimal + 1:
						if 4 * q + r - t < n * t:
									result += str(lowerCAmelCase__ )
									if counter == 0:
												result += "."

									if decimal == counter:
												break

									counter += 1
									__UpperCAmelCase   :      Dict										=     10 * (r - n * t)
									__UpperCAmelCase   :      List[Any]										=     ((10 * (3 * q + r)) // t) - 10 * n
									q *= 10
									__UpperCAmelCase   :      Optional[int]										=     nr
						else:
									__UpperCAmelCase   :      int										=     (2 * q + r) * l
									__UpperCAmelCase   :      Optional[int]										=     (q * (7 * k) + 2 + (r * l)) // (t * l)
									q *= k
									t *= l
									l += 2
									k += 1
									__UpperCAmelCase   :      Any										=     nn
									__UpperCAmelCase   :      Optional[int]										=     nr
			return result


def   lowercase_	(   ):

			"""simple docstring"""





			print(f'{calculate_pi(50 ) = }' )
			import doctest

			doctest.testmod()


if __name__ == "__main__":
					main()









'''simple docstring'''
from math import pi


def   lowercase_	(   lowerCAmelCase__	:  float ):

			"""simple docstring"""





			return degree / (180 / pi)


if __name__ == "__main__":
					from doctest import testmod

					testmod()




