
'''simple docstring'''







__lowerCAmelCase         =    8.3_144_598





def 					UpperCAmelCase_		(__a      :    float ,	__a      :    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         =    3_0_0
  __lowerCAmelCase         =    2_8
  __lowerCAmelCase         =    rms_speed_of_molecule(temperature, molar_mass)
  print(f'''Vrms of Nitrogen gas at 300 K is {vrms} m/s''')





'''simple docstring'''







def 					UpperCAmelCase_		(__a      :    list ,	__a      :    list ,	__a      :    int ):






   """simple docstring"""

   _a				:	Optional[Any]			=   len(__a )
   _a				:	int			=   [[0] * n for i in range(__a )]
   for i in range(__a ):
      _a				:	Tuple			=   y_points[i]

   for i in range(2 ,	__a ):
      for j in range(__a ,	__a ):
         _a				:	Tuple			=   (
             (xa - x_points[j - i + 1]) * q[j][i - 1]
             - (xa - x_points[j]) * q[j - 1][i - 1]
         ) / (x_points[j] - x_points[j - i + 1])

   return [q[n - 1][n - 1], q]


if __name__ == "__main__":
  import doctest

  doctest.testmod()



