

"""simple docstring"""


from string import ascii_uppercase

__A						       =      {str(ord(c) - 55): c for c in ascii_uppercase}






def    a__   (   __SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			)     ->     str:
		if isinstance(__SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			):
				raise TypeError("int() can't convert non-string with explicit base"			)
		if num < 0:
				raise ValueError("parameter must be positive int"			)
		if isinstance(__SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			):
				raise TypeError("'str' object cannot be interpreted as an integer"			)
		if isinstance(__SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			):
				raise TypeError("'float' object cannot be interpreted as an integer"			)
		if base in (0, 1):
				raise ValueError("base must be >= 2"			)
		if base > 3_6:
				raise ValueError("base must be <= 36"			)
		__lowerCAmelCase:	str   				=      ""
		__lowerCAmelCase:	Dict   				=      0
		__lowerCAmelCase:	Optional[int]   				=      0
		while div != 1:
				__lowerCAmelCase				,			__lowerCAmelCase:	int   				=      divmod(__SCREAMING_SNAKE_CASE ,			__SCREAMING_SNAKE_CASE			)
				if base >= 1_1 and 9 < mod < 3_6:
						__lowerCAmelCase:	Any   				=      ALPHABET_VALUES[str(__SCREAMING_SNAKE_CASE			)]
				else:
						__lowerCAmelCase:	List[Any]   				=      str(__SCREAMING_SNAKE_CASE			)
				new_value += actual_value
				__lowerCAmelCase:	Union[str, Any]   				=      num // base
				__lowerCAmelCase:	Optional[Any]   				=      div
				if div == 0:
						return str(new_value[::-1]			)
				elif div == 1:
						new_value += str(__SCREAMING_SNAKE_CASE			)
						return str(new_value[::-1]			)

		return new_value[::-1]


if __name__ == "__main__":
			import doctest

			doctest.testmod()

			for base in range(2, 37):
						for num in range(1000):
									assert int(decimal_to_any(num, base), base) == num, (
									    num,
									    base,
									    decimal_to_any(num, base),
									    int(decimal_to_any(num, base), base),
									)





"""simple docstring"""


import numpy as np






def    a__   (   __SCREAMING_SNAKE_CASE			)     ->     np.array:
		return (2 / (1 + np.exp(-2 * vector			))) - 1


if __name__ == "__main__":
			import doctest

			doctest.testmod()


