


from __future__ import annotations

from math import pi, sqrt





def   _lowerCAmelCase				(   UpperCamelCase__:     float							,					UpperCamelCase__:     float						) ->   tuple:





	"""simple docstring"""







	if inductance <= 0:
		raise ValueError("""Inductance cannot be 0 or negative"""						)

	elif capacitance <= 0:
		raise ValueError("""Capacitance cannot be 0 or negative"""						)

	else:
		return (
		    "Resonant frequency",
		    float(1 / (2 * pi * (sqrt(inductance * capacitance						)))						),
		)


if __name__ == "__main__":
				import doctest

				doctest.testmod()







import os





def   _lowerCAmelCase				(   UpperCamelCase__:     str = "matrix.txt"						) ->   int:





	"""simple docstring"""







	with open(os.path.join(os.path.dirname(UpperCamelCase__						)							,					UpperCamelCase__						)						) as in_file:
		A								=				in_file.read()

	A								=				[[int(UpperCamelCase__						) for cell in row.split(""","""						)] for row in data.strip().splitlines()]
	A								=				[[0 for cell in row] for row in grid]
	A								=				len(grid[0]						)

	A								=				[[0 for i in range(UpperCamelCase__						)] for j in range(UpperCamelCase__						)]
	A								=				grid[0][0]
	for i in range(1							,					UpperCamelCase__						):
		A								=				grid[0][i] + dp[0][i - 1]
	for i in range(1							,					UpperCamelCase__						):
		A								=				grid[i][0] + dp[i - 1][0]

	for i in range(1							,					UpperCamelCase__						):
		for j in range(1							,					UpperCamelCase__						):
			A								=				grid[i][j] + min(dp[i - 1][j]							,					dp[i][j - 1]						)

	return dp[-1][-1]


if __name__ == "__main__":
				print(f'''{solution() = }''')



