

'''simple docstring'''

import math




def 							_UpperCamelCase				(   lowerCAmelCase__:					float		,lowerCAmelCase__:					float   )      -> float:
							return math.pow(lowerCAmelCase__		,2   ) - a




def 							_UpperCamelCase				(   lowerCAmelCase__:					float   )      -> float:
							return 2 * x




def 							_UpperCamelCase				(   lowerCAmelCase__:					float   )      -> float:
							SCREAMING_SNAKE_CASE_				=				2.0

							while start <= a:
														SCREAMING_SNAKE_CASE_				=				math.pow(lowerCAmelCase__		,2   )

							return start




def 							_UpperCamelCase				(   lowerCAmelCase__:					float		,lowerCAmelCase__:					int = 9999		,lowerCAmelCase__:					float = 0.00_000_000_000_001   )      -> float:

							if a < 0:
														raise ValueError('math domain error'   )

							SCREAMING_SNAKE_CASE_				=				get_initial_point(lowerCAmelCase__   )

							for _ in range(lowerCAmelCase__   ):
														SCREAMING_SNAKE_CASE_				=				value
														SCREAMING_SNAKE_CASE_				=				value - fx(lowerCAmelCase__		,lowerCAmelCase__   ) / fx_derivative(lowerCAmelCase__   )
														if abs(prev_value - value   ) < tolerance:
																					return value

							return value


if __name__ == "__main__":
							from doctest import testmod

							testmod()








'''simple docstring'''

SCREAMING_SNAKE_CASE							:				int     	=			8.3_1_4_4_5_9_8




def 							_UpperCamelCase				(   lowerCAmelCase__:					float		,lowerCAmelCase__:					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
							SCREAMING_SNAKE_CASE							:				List[str]     	=			300
							SCREAMING_SNAKE_CASE							:				List[Any]     	=			28
							SCREAMING_SNAKE_CASE							:				Optional[Any]     	=			rms_speed_of_molecule(temperature, molar_mass)
							print(f"Vrms of Nitrogen gas at 300 K is {vrms} m/s")





