



from __future__ import annotations

from enum import Enum







class 							_a							(      _lowerCAmelCase				):
			A					=  24
			A					=  21
			A					=  18
			A					=  15
			A					=  12
			A					=  9
			A					=  6
			A					=  3
			A					=  2
			A					=  1
			A					=  -1
			A					=  -2
			A					=  -3
			A					=  -6
			A					=  -9
			A					=  -12
			A					=  -15
			A					=  -18
			A					=  -21
			A					=  -24







class 							_a							(      _lowerCAmelCase				):
			A					=  8
			A					=  7
			A					=  6
			A					=  5
			A					=  4
			A					=  3
			A					=  2
			A					=  1







def    lowerCAmelCase_  (lowerCAmelCase__:		float		,	lowerCAmelCase__:		str | SIUnit		,	lowerCAmelCase__:		str | SIUnit		,	):





			"""simple docstring"""


			if isinstance(lowerCAmelCase__		,	lowerCAmelCase__     ):
						UpperCAmelCase_:		Union[str, Any]       			=    SIUnit[known_prefix.lower()]
			if isinstance(lowerCAmelCase__		,	lowerCAmelCase__     ):
						UpperCAmelCase_:		Tuple       			=    SIUnit[unknown_prefix.lower()]
			UpperCAmelCase_:		float       			=    known_amount * (
			    1_0 ** (known_prefix.value - unknown_prefix.value)
			)
			return unknown_amount







def    lowerCAmelCase_  (lowerCAmelCase__:		float		,	lowerCAmelCase__:		str | BinaryUnit		,	lowerCAmelCase__:		str | BinaryUnit		,	):





			"""simple docstring"""


			if isinstance(lowerCAmelCase__		,	lowerCAmelCase__     ):
						UpperCAmelCase_:		str       			=    BinaryUnit[known_prefix.lower()]
			if isinstance(lowerCAmelCase__		,	lowerCAmelCase__     ):
						UpperCAmelCase_:		str       			=    BinaryUnit[unknown_prefix.lower()]
			UpperCAmelCase_:		float       			=    known_amount * (
			    2 ** ((known_prefix.value - unknown_prefix.value) * 1_0)
			)
			return unknown_amount


if __name__ == "__main__":
	import doctest

	doctest.testmod()











import numpy as np







def    lowerCAmelCase_  (lowerCAmelCase__:		Optional[Any]     ):





			"""simple docstring"""


			UpperCAmelCase_:		Optional[int]       			=    np.exp(lowerCAmelCase__     )

			# Add up the all the exponentials
			UpperCAmelCase_:		Tuple       			=    np.sum(lowerCAmelCase__     )

			# Divide every exponent by the sum of all exponents
			UpperCAmelCase_:		str       			=    exponent_vector / sum_of_exponents

			return softmax_vector


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






