'''simple docstring'''

_A			:      int					      =				8.3_1_4_4_5_9_8







def      UpperCamelCase_						(					snake_case_       :       float						,		snake_case_       :       float      )					->     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
 _A			:      int					      =				300
 _A			:      Any					      =				28
 _A			:      Tuple					      =				rms_speed_of_molecule(temperature, molar_mass)
 print(f'Vrms of Nitrogen gas at 300 K is {vrms} m/s')







'''simple docstring'''

def      UpperCamelCase_						(					snake_case_       :       list[int]						,		snake_case_       :       list[int]      )					->     tuple[float, float]:






 '''simple docstring'''

 if not len(snake_case_      ) == len(snake_case_      ) == 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
 __lowerCAmelCase							,       __lowerCAmelCase							,       __lowerCAmelCase											=						equationa
 __lowerCAmelCase							,       __lowerCAmelCase							,       __lowerCAmelCase											=						equationa

 # Calculate the determinants of the matrices
 __lowerCAmelCase											=						aa * ba - aa * ba
 __lowerCAmelCase											=						ca * ba - ca * ba
 __lowerCAmelCase											=						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:
   __lowerCAmelCase											=						determinant_x / determinant
   __lowerCAmelCase											=						determinant_y / determinant
   # Non-Trivial Solution (Consistent system)
   return (x, y)






