"""simple docstring"""







import math
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       int						)							->    bool:

	'''simple docstring'''





	return math.sqrt(UpperCAmelCase_						) * math.sqrt(UpperCAmelCase_						) == num
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       int						)							->    bool:

	'''simple docstring'''





	__snake_case    :							Any   	=				0
	__snake_case    :							Any   	=				n
	while left <= right:
		__snake_case    :							Optional[Any]   	=				(left + right) // 2
		if mid**2 == n:
			return True
		elif mid**2 > n:
			__snake_case    :							Tuple   	=				mid - 1
		else:
			__snake_case    :							Tuple   	=				mid + 1
	return False


if __name__ == "__main__":
	import doctest

	doctest.testmod()






"""simple docstring"""







import numpy as np
def 						__UpperCAmelCase       (					UpperCAmelCase_					:       np.array						)							->    np.array:

	'''simple docstring'''





	return 1 / (1 + np.exp(-vector						))


if __name__ == "__main__":
	import doctest

	doctest.testmod()





