
'''simple docstring'''





def 							snake_case				(		UpperCAmelCase						)->      int:







      """simple docstring"""






      if not isinstance(UpperCAmelCase   ,	UpperCAmelCase						):
            __A													=      f'Input value of [number={number}] must be an integer'
            raise TypeError(UpperCAmelCase						)
      if number < 1:
            raise ValueError('Input must be a positive integer'						)
      return number * (2 * number - 1)


if __name__ == "__main__":
 import doctest

 doctest.testmod()









import numpy as np







def _a					(			SCREAMING_SNAKE_CASE						:     Union[str, Any]						)       ->       List[str]:

 """simple docstring"""






 __lowerCAmelCase:  Union[str, Any]        = np.exp(SCREAMING_SNAKE_CASE						)

 # Add up the all the exponentials
 __lowerCAmelCase:  Dict        = np.sum(SCREAMING_SNAKE_CASE						)

 # Divide every exponent by the sum of all exponents
 __lowerCAmelCase:  int        = exponent_vector / sum_of_exponents

 return softmax_vector


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





