





"""simple docstring"""






def  __lowerCamelCase					(					lowerCAmelCase__       ,lowerCAmelCase__				):
				return base * power(lowerCAmelCase__       ,(exponent - 1)				) if exponent else 1


if __name__ == "__main__":
					print('''Raise base to the power of exponent using recursion...''')
					SCREAMING_SNAKE_CASE						:						Dict					   =       int(input('''Enter the base: ''').strip())
					SCREAMING_SNAKE_CASE						:						Optional[Any]					   =       int(input('''Enter the exponent: ''').strip())
					SCREAMING_SNAKE_CASE						:						List[str]					   =       power(base, abs(exponent))
					if exponent < 0:  # power() does not properly deal w/ negative exponents
										SCREAMING_SNAKE_CASE						:						Optional[int]					   =       1 / result
					print(f'''{base} to the power of {exponent} is {result}''')










"""simple docstring"""






import numpy as np



def  __lowerCamelCase					(					lowerCAmelCase__				):
				return 1 / (1 + np.exp(-vector				))



def  __lowerCamelCase					(					lowerCAmelCase__				):
				return vector * sigmoid(lowerCAmelCase__				)


if __name__ == "__main__":
					import doctest

					doctest.testmod()


