
'''simple docstring'''






def    UpperCAmelCase							(  UpperCAmelCase__							:							int       ,							UpperCAmelCase__							:							int):
				return int((input_a, input_a).count(0) != 0)





def    UpperCAmelCase							(  ):
				assert nand_gate(0       ,							0) == 1
				assert nand_gate(0       ,							1) == 1
				assert nand_gate(1       ,							0) == 1
				assert nand_gate(1       ,							1) == 0


if __name__ == "__main__":
					print(nand_gate(0, 0))
					print(nand_gate(0, 1))
					print(nand_gate(1, 0))
					print(nand_gate(1, 1))


'''simple docstring'''






import numpy as np





def    UpperCAmelCase							(  UpperCAmelCase__							:							np.array):
				return 1 / (1 + np.exp(-vector))


if __name__ == "__main__":
					import doctest

					doctest.testmod()
