





UpperCAmelCase_     							= 8.314_4598




def 		lowerCAmelCase_    (  __UpperCAmelCase:			float		,   __UpperCAmelCase:			float      )      ->	float:
    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
  UpperCAmelCase_     							= 300
  UpperCAmelCase_     							= 28
  UpperCAmelCase_     							= rms_speed_of_molecule(temperature, molar_mass)
  print(F'''Vrms of Nitrogen gas at 300 K is {vrms} m/s''')








def 		lowerCAmelCase_    (  __UpperCAmelCase:			float		,   __UpperCAmelCase:			int      )      ->	float:
    if digit_amount > 0:
        return round(number - int(__UpperCAmelCase      )		,   __UpperCAmelCase      )
    return number - int(__UpperCAmelCase      )


if __name__ == "__main__":
  print(decimal_isolate(1.53, 0))
  print(decimal_isolate(35.345, 1))
  print(decimal_isolate(35.345, 2))
  print(decimal_isolate(35.345, 3))
  print(decimal_isolate(-14.789, 3))
  print(decimal_isolate(0, 2))
  print(decimal_isolate(-14.123, 1))
  print(decimal_isolate(-14.123, 2))
  print(decimal_isolate(-14.123, 3))

