
def 	UpperCamelCase   (							lowerCAmelCase__			,      lowerCAmelCase__			,      lowerCAmelCase__		):
					'''simple docstring'''
					return round(float(moles / volume		) * nfactor		)



def 	UpperCamelCase   (							lowerCAmelCase__			,      lowerCAmelCase__			,      lowerCAmelCase__		):
					'''simple docstring'''
					return round(float((moles * 0.08_21 * temperature) / (volume)		)		)



def 	UpperCamelCase   (							lowerCAmelCase__			,      lowerCAmelCase__			,      lowerCAmelCase__		):
					'''simple docstring'''
					return round(float((moles * 0.08_21 * temperature) / (pressure)		)		)



def 	UpperCamelCase   (							lowerCAmelCase__			,      lowerCAmelCase__			,      lowerCAmelCase__		):
					'''simple docstring'''
					return round(float((pressure * volume) / (0.08_21 * moles)		)		)


if __name__ == "__main__":
							import doctest

							doctest.testmod()






lowercase__		:Any			  =   8.3_144_598



def 	UpperCamelCase   (							lowerCAmelCase__			,      lowerCAmelCase__		):
					'''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
							lowercase__		:Optional[Any]			  =   300
							lowercase__		:List[Any]			  =   28
							lowercase__		:Dict			  =   rms_speed_of_molecule(temperature, molar_mass)
							print(F'Vrms of Nitrogen gas at 300 K is {vrms} m/s')




