
import numpy as np
def        __lowercase(							__snake_case				:		Optional[Any]					)       ->   Union[str, Any]:
       __snake_case						       =   np.exp(__A					)

       # Add up the all the exponentials
       __snake_case						       =   np.sum(__A					)

       # Divide every exponent by the sum of all exponents
       __snake_case						       =   exponent_vector / sum_of_exponents

       return softmax_vector


if __name__ == "__main__":
 print(softmax((0,)))






def 		lowercase__ (		__A:						int					):





					'''simple docstring'''






					if not isinstance(__A				,__A					):
										__magic_name__				:						Dict     				=				F'''Input value of [number={number}] must be an integer'''
										raise TypeError(__A					)
					if number < 0 or number % 2 == 1:
										return False
					__magic_name__				:						Any     				=				int(number**0.5					)
					return number == number_sqrt * (number_sqrt + 1)


if __name__ == "__main__":
	import doctest

	doctest.testmod()



