
from __future__ import annotations



def 	UpperCamelCase   (							lowerCAmelCase__		):
					'''simple docstring'''






					for i in range(1			,      len(matrix[0]		)		):
										matrix[0][i] += matrix[0][i - 1]

					# preprocessing the first column
					for i in range(1			,      len(_lowercase		)		):
										matrix[i][0] += matrix[i - 1][0]

					# updating the path cost for current position
					for i in range(1			,      len(_lowercase		)		):
										for j in range(1			,      len(matrix[0]		)		):
															matrix[i][j] += min(matrix[i - 1][j]			,      matrix[i][j - 1]		)

					return matrix[-1][-1]


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')




