
"""simple docstring"""






def     lowerCAmelCase__ (		__magic_name__ ,      __magic_name__			)	->List[Any]:






						if n == 0:
												return 1

						elif n % 2 == 1:
												return binary_exponentiation(UpperCAmelCase_ ,      n - 1			) * a

						else:
												__lowercase						      =					binary_exponentiation(UpperCAmelCase_ ,      n / 2			)
												return b * b


if __name__ == "__main__":
					try:
										_lowercase							 =							int(input('''Enter Base : ''').strip())
										_lowercase							 =							int(input('''Enter Power : ''').strip())
					except ValueError:
										print('''Invalid literal for integer''')

					_lowercase							 =							binary_exponentiation(BASE, POWER)
					print(F"{BASE}^({POWER}) : {RESULT}")







"""simple docstring"""






from scipy.constants import g



def     lowerCAmelCase__ (		__magic_name__ ,      __magic_name__			)	->float:
			if mass < 0:
						# handling of negative values of mass
						raise ValueError("The mass of a body cannot be negative"			)
			if height < 0:
						# handling of negative values of height
						raise ValueError("The height above the ground cannot be negative"			)
			return mass * g * height


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

					testmod(name='''potential_energy''')





