__lowerCamelCase					:	List[Any]       =  8.3144598




def       _snake_case	(   lowerCAmelCase							:   float   , lowerCAmelCase							:   float	):
		"""simple docstring"""







		if temperature < 0:
				raise Exception("Temperature cannot be less than 0 K"	)
		if molar_mass <= 0:
				raise Exception("Molar mass cannot be less than or equal to 0 kg/mol"	)
		else:
				return (3 * UNIVERSAL_GAS_CONSTANT * temperature / molar_mass) ** 0.5


if __name__ == "__main__":
		import doctest

		# run doctest
		doctest.testmod()

		# example
		__lowerCamelCase					:	Dict       =  3_00
		__lowerCamelCase					:	str       =  28
		__lowerCamelCase					:	Optional[Any]       =  rms_speed_of_molecule(temperature, molar_mass)
		print(f'''Vrms of Nitrogen gas at 300 K is {vrms} m/s''')

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