from __future__ import annotations

from math import pi, sqrt






def        __UpperCAmelCase    (       UpperCAmelCase,		UpperCAmelCase       )->       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()


# Lint as: python3
import dataclasses
import re
from dataclasses import dataclass
from functools import total_ordering
from typing import Optional, Union


A_      =      re.compile(R"^(?P<major>\d+)" R"\.(?P<minor>\d+)" R"\.(?P<patch>\d+)$")






@total_ordering
@dataclass
class      __lowercase					:
						lowercase					 =     42
						lowercase					 =     None
						lowercase					 =     None
						lowercase					 =     None
						lowercase					 =     None

						def        __a		(	self				:      int   )							->		str:


									'''simple docstring'''

									lowercase		,lowercase		,lowercase							=		_str_to_version_tuple(self.version_str   )

						def __repr__(	self				:      Union[str, Any]   )							->		int:


									'''simple docstring'''

									return f'{self.tuple[0]}.{self.tuple[1]}.{self.tuple[2]}'

						@property
						def        __a		(	self				:      Dict   )							->		Union[str, Any]:


									'''simple docstring'''

									return self.major, self.minor, self.patch

						def        __a		(	self				:      Optional[Any]							,							__lowerCamelCase				:      Any   )							->		Dict:


									'''simple docstring'''

									if isinstance(__lowerCamelCase							,							__lowerCamelCase   ):
												return Version(__lowerCamelCase   )
									elif isinstance(__lowerCamelCase							,							__lowerCamelCase   ):
												return other
									raise TypeError(f'{other} (type {type(__lowerCamelCase   )}) cannot be compared to version.'   )

						def __eq__(	self				:      Tuple							,							__lowerCamelCase				:      Tuple   )							->		List[Any]:


									'''simple docstring'''

									try:
												lowercase							=		self._validate_operand(__lowerCamelCase   )
									except (TypeError, ValueError):
												return False
									else:
												return self.tuple == other.tuple

						def __lt__(	self				:      Any							,							__lowerCamelCase				:      Union[str, Any]   )							->		int:


									'''simple docstring'''

									lowercase							=		self._validate_operand(__lowerCamelCase   )
									return self.tuple < other.tuple

						def __hash__(	self				:      int   )							->		str:


									'''simple docstring'''

									return hash(_version_tuple_to_str(self.tuple   )   )

						@classmethod
						def        __a		(	cls				:      List[str]							,							__lowerCamelCase				:      Any   )							->		int:


									'''simple docstring'''

									lowercase							=		{f.name for f in dataclasses.fields(cls   )}
									return cls(**{k: v for k, v in dic.items() if k in field_names}   )



						def        __a		(	self				:      Union[str, Any]   )							->		str:


									'''simple docstring'''

									return self.version_str






def        __UpperCAmelCase    (       UpperCAmelCase       )->       List[str]:



			"""simple docstring"""







			lowercase							=		_VERSION_REG.match(UpperCAmelCase       )
			if not res:
						raise ValueError(f'Invalid version \'{version_str}\'. Format should be x.y.z with {{x,y,z}} being digits.'       )
			return tuple(int(UpperCAmelCase       ) for v in [res.group('''major'''       ), res.group('''minor'''       ), res.group('''patch'''       )]       )






def        __UpperCAmelCase    (       UpperCAmelCase       )->       int:



			"""simple docstring"""







			return ".".join(str(UpperCAmelCase       ) for v in version_tuple       )





