
lowerCamelCase__	=							8.3_14_45_98


def 							__A(lowerCAmelCase						,  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__	=							300
		lowerCamelCase__	=							28
		lowerCamelCase__	=							rms_speed_of_molecule(temperature, molar_mass)
		print(F"""Vrms of Nitrogen gas at 300 K is {vrms} m/s""")





def 							__A(lowerCAmelCase						,  lowerCAmelCase )		->				tuple[float, float]:

		"""simple docstring"""






		if not len(lowerCAmelCase ) == len(lowerCAmelCase ) == 3:
				raise ValueError("""Please enter a valid equation.""" )
		if equationa[0] == equationa[1] == equationa[0] == equationa[1] == 0:
				raise ValueError("""Both a & b of two equations can't be zero.""" )

		# Extract the coefficients
		_UpperCamelCase    ,	_UpperCamelCase    ,	_UpperCamelCase						    =	equationa
		_UpperCamelCase    ,	_UpperCamelCase    ,	_UpperCamelCase						    =	equationa

		# Calculate the determinants of the matrices
		_UpperCamelCase						    =	aa * ba - aa * ba
		_UpperCamelCase						    =	ca * ba - ca * ba
		_UpperCamelCase						    =	aa * ca - aa * ca

		# Check if the system of linear equations has a solution (using Cramer's rule)
		if determinant == 0:
				if determinant_x == determinant_y == 0:
						raise ValueError("""Infinite solutions. (Consistent system)""" )
				else:
						raise ValueError("""No solution. (Inconsistent system)""" )
		else:
				if determinant_x == determinant_y == 0:
						# Trivial solution (Inconsistent system)
						return (0.0, 0.0)
				else:
						_UpperCamelCase						    =	determinant_x / determinant
						_UpperCamelCase						    =	determinant_y / determinant
						# Non-Trivial Solution (Consistent system)
						return (x, y)



