
from __future__ import annotations

from math import pow, sqrt






def    lowerCamelCase__				(				__lowerCAmelCase  :  float    ,							__lowerCAmelCase  :  float    ,							__lowerCAmelCase  :  float				):




			"""simple docstring"""


			if (resistance, reactance, impedance).count(0				) != 1:
						raise ValueError("One and only one argument must be 0"				)
			if resistance == 0:
						return {"resistance": sqrt(pow(__lowerCAmelCase    ,							2				) - pow(__lowerCAmelCase    ,							2				)				)}
			elif reactance == 0:
						return {"reactance": sqrt(pow(__lowerCAmelCase    ,							2				) - pow(__lowerCAmelCase    ,							2				)				)}
			elif impedance == 0:
						return {"impedance": sqrt(pow(__lowerCAmelCase    ,							2				) + pow(__lowerCAmelCase    ,							2				)				)}
			else:
						raise ValueError("Exactly one argument must be 0"				)


if __name__ == "__main__":
			import doctest

			doctest.testmod()





import functools






def    lowerCamelCase__				(				__lowerCAmelCase  :  str    ,							__lowerCAmelCase  :  str				):




			"""simple docstring"""


			lowerCAmelCase_						=	len(__lowerCAmelCase				)
			lowerCAmelCase_						=	len(__lowerCAmelCase				)

			@functools.cache
			def min_distance(__lowerCAmelCase  :  int    ,							__lowerCAmelCase  :  int				) -> int:
						# if first word index is overflow - delete all from the second word
						if indexa >= len_worda:
									return len_worda - indexa
						# if second word index is overflow - delete all from the first word
						if indexa >= len_worda:
									return len_worda - indexa
						lowerCAmelCase_						=	int(worda[indexa] != worda[indexa]				)  # current letters not identical
						return min(
						    1 + min_distance(indexa + 1    ,							__lowerCAmelCase				)    ,							1 + min_distance(__lowerCAmelCase    ,							indexa + 1				)    ,							diff + min_distance(indexa + 1    ,							indexa + 1				)    ,							)

			return min_distance(0    ,							0				)


if __name__ == "__main__":
			import doctest

			doctest.testmod()



