






"""simple docstring"""





from __future__ import annotations

from math import pi, sqrt



def   a    (     __UpperCAmelCase      :    float      ,   __UpperCAmelCase      :    float  )    ->							tuple:

						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()









def 					_a							(					lowerCAmelCase    ,						lowerCAmelCase )->	List[str]:
		SCREAMING_SNAKE_CASE_					      =							[1]
		for i in range(2    ,						lowerCAmelCase ):
				factorials.append(factorials[-1] * i )
		assert 0 <= k < factorials[-1] * n, "k out of bounds"

		SCREAMING_SNAKE_CASE_					      =							[]
		SCREAMING_SNAKE_CASE_					      =							list(range(lowerCAmelCase ) )

		# Find permutation
		while factorials:
				SCREAMING_SNAKE_CASE_					      =							factorials.pop()
				SCREAMING_SNAKE_CASE_      ,				SCREAMING_SNAKE_CASE_					      =							divmod(lowerCAmelCase    ,						lowerCAmelCase )
				permutation.append(elements[number] )
				elements.remove(elements[number] )
		permutation.append(elements[0] )

		return permutation


if __name__ == "__main__":
						import doctest

						doctest.testmod()