



__lowerCamelCase         =			8.3_1_4_4_5_9_8







def    _snake_case (       __snake_case					,  __snake_case    )     ->     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    _snake_case (       __snake_case					,  __snake_case					,  __snake_case    )     ->     list:






      '''simple docstring'''







      UpperCAmelCase_  :	Any				      =		len(__snake_case    )
      UpperCAmelCase_  :	Tuple				      =		[[0] * n for i in range(__snake_case    )]
      for i in range(__snake_case    ):
            UpperCAmelCase_  :	Optional[Any]				      =		y_points[i]

      for i in range(2					,  __snake_case    ):
            for j in range(__snake_case					,  __snake_case    ):
                  UpperCAmelCase_  :	int				      =		(
                      (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()
