



"""simple docstring"""







from __future__ import annotations

import typing
from collections.abc import Iterable

import numpy as np

lowercase__		:				List[Any]          =	typing.Union[Iterable[float], Iterable[int], np.ndarray]  # noqa: UP007
lowercase__		:				List[Any]          =	typing.Union[np.floataa, int, float]  # noqa: UP007

def 				UpperCamelCase_    (    lowerCAmelCase__      :				Vector    ,   lowerCAmelCase__      :				Vector						)						->   str:

  """simple docstring"""




  return np.sqrt(np.sum((np.asarray(lowerCAmelCase__						) - np.asarray(lowerCAmelCase__						)) ** 2						)						)

def 				UpperCamelCase_    (    lowerCAmelCase__      :				Vector    ,   lowerCAmelCase__      :				Vector						)						->   Tuple:

  """simple docstring"""




  return sum((va - va) ** 2 for va, va in zip(lowerCAmelCase__    ,   lowerCAmelCase__						)						) ** (1 / 2)


if __name__ == "__main__":

     def 				UpperCamelCase_    (    )						->   str:

       """simple docstring"""




       from timeit import timeit

       print('Without Numpy'						)
       print(
           timeit(
               'euclidean_distance_no_np([1, 2, 3], [4, 5, 6])'    ,   number=1_0000    ,   globals=globals()    ,   )						)
       print('With Numpy'						)
       print(
           timeit(
               'euclidean_distance([1, 2, 3], [4, 5, 6])'    ,   number=1_0000    ,   globals=globals()    ,   )						)
     benchmark()






from __future__ import annotations

from math import pi, sqrt




def       _snake_case	(   lowerCAmelCase							:   float   , lowerCAmelCase							:   float	):
		"""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()
